how to obtain ip address from a different network dhcp

5
WWW.TCPIPGURU.COM Obtaining ip address from a different network Dhcp Server

Upload: tcpipguru

Post on 19-Jun-2015

694 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: How to obtain ip address from a different network dhcp

WWW.TCPIPGURU.COM

Obtaining ip address from a different network Dhcp

Server

Page 2: How to obtain ip address from a different network dhcp
Page 3: How to obtain ip address from a different network dhcp

Configuring Cisco router 2611xm with two different vlan’s

R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int fa0/0 R1(config-if)#no ip address R1(config-if)#shutdown R1(config-if)#exit R1(config)#int fa0/0.1 R1(config-subif)#encapsulation dot1Q 2 R1(config-subif)#ip address 192.168.1.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit R1(config)#int fa0/0.2 R1(config-subif)#encapsulation dot1Q 3 R1(config-subif)#ip address 192.168.2.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit

Page 4: How to obtain ip address from a different network dhcp

Configuring Cisco switch 2950 with two different vlan’s

Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#int fa0/21 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#int fa0/9 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#int fa0/18 Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan all 

Page 5: How to obtain ip address from a different network dhcp

Creating int fa0/0.2 of router with ip helper address

R1#config t Enter configuration commands, one per line. End with

CNTL/Z. R1(config)#int fa0/0.1 R1(config-subif)#ip helper-address 192.168.1.2