Home

Monday, 23 September 2013

Configuring Vlan part 2







show run fa0/8
s3(config-if)#switchport mode access
s3(config-if)#switchport access vlan10
//this adds pc2 v10
.

s2(config)#do show vlan
s2(config)#switchport access vlan 10
//this adds pc1 v20
.

vlan 1 =192.168.1.0/24
vlan 10 =192.168.10.0/24(sys1ip)
vlan 20 =192.168.20.0/24(sys2ip)


s1(config)#interface vlan 20
s1(config-if)#ip address 192.168.20.1

 
s1#show ip interface brief
s1(config)#ip routing

//enable routing

r2#conf t
r2(config)#interface fastethernet 0/0.20

//creating sub interfaces

r2(config-subif)#encapsulation dot1q 20
r2(config-subif)#ip address 192.168.20.1 255.255.255.0


r2(config)#interface fastethernet 0/0.10
//creating sub interfaces
r2(config-subif)#encapsulation dot1q 10
r2(config-subif)#ip address 192.168.10.1 255.255.255.0

s3#show cdp neighbors
s3(config)#interface 0/4
s3(config-if)# switchport mode trunk


r1#show ip route
r1#conf t
r1#ip route 192.168.20.0 255.255.255.0 192.168.1.2.



Now completing this try to ping around switches and its host within Vtps

No comments:

Post a Comment