ex8s_VLAN_Trunk
Router
RL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| enable configure terminal hostname RL interface GigabitEthernet 0/0 no shutdown interface GigabitEthernet 0/0.11 encapsulation dot1Q 11 ip address 77.xy.11.254 255.255.255.0 interface GigabitEthernet 0/0.51 encapsulation dot1Q 51 ip address 77.xy.51.254 255.255.255.0 interface Serial0/0/0 ip address 192.168.255.1 255.255.255.0 clock rate 1000000 no shutdown exit router ospf 5xy network 192.168.255.0 0.0.0.255 area 5xy network 77.xy.11.0 0.0.0.255 area 5xy network 77.xy.51.0 0.0.0.255 area 5xy exit exit copy running-config startup-config
|
RR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| enable configure terminal hostname RR interface GigabitEthernet 0/0 no shutdown interface GigabitEthernet 0/0.31 encapsulation dot1Q 31 ip address 77.xy.31.254 255.255.255.0 interface GigabitEthernet 0/0.41 encapsulation dot1Q 41 ip address 77.xy.41.254 255.255.255.0 interface Serial0/0/0 ip address 192.168.255.2 255.255.255.0 clock rate 1000000 no shutdown exit router ospf 5xy network 192.168.255.0 0.0.0.255 area 5xy network 77.xy.31.0 0.0.0.255 area 5xy network 77.xy.41.0 0.0.0.255 area 5xy exit exit copy running-config startup-config
|
Switch
SW1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| enable configure terminal interface range FastEthernet0/1-5 switchport access vlan 51 interface range FastEthernet0/6-10 switchport access vlan 11 interface range FastEthernet0/11-15 switchport access vlan 31 interface range FastEthernet0/16-20 switchport access vlan 41 interface FastEthernet0/22 switchport trunk allowed vlan 31,41 switchport mode trunk interface FastEthernet0/23 switchport trunk allowed vlan 11,51 switchport mode trunk interface FastEthernet0/24 switchport trunk allowed vlan 11,51 switchport mode trunk exit exit copy running-config startup-config
|
SW2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| enable configure terminal interface range FastEthernet0/1-5 switchport access vlan 51 interface range FastEthernet0/6-10 switchport access vlan 11 interface range FastEthernet0/11-15 switchport access vlan 31 interface range FastEthernet0/16-20 switchport access vlan 41 interface FastEthernet0/22 switchport trunk allowed vlan 31,41 switchport mode trunk interface FastEthernet0/23 switchport trunk allowed vlan 11,51 switchport mode trunk interface FastEthernet0/24 switchport trunk allowed vlan 11,51 switchport mode trunk exit exit copy running-config startup-config
|