Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [First enable switch and go to configuration terminal]
- enable
- configure terminal
- [Go to all interfaces connected and switch to trunk mode]
- interface FastEthernet0/1
- switchport mode trunk
- [Add VLAN 10 and 20]
- switchport trunk allowed vlan add 10
- switchport trunk allowed vlan add 20
- [Repeat steps for other ethernets]
- interface FastEthernet0/2
- switchport mode trunk
- switchport trunk allowed vlan add 10
- switchport trunk allowed vlan add 20
- interface GigabitEthernet0/2
- switchport mode trunk
- switchport trunk allowed vlan add 10
- switchport trunk allowed vlan add 20
- [Enable router and go to configuration terminal and add VLAN 10 and 20]
- enable
- configure terminal
- vlan 10 name G06Lab
- vlan 20 name G14Lab
- [Go to the interface and activate it]
- interface GigabitEthernet0/0
- no shutdown
- [Go to sub-interface of VLAN 10 and 20]
- interface GigabitEthernet0/0.10
- [configure to interface to respond to VLAN]
- encapsulation dot1Q 10
- [add IP address to the sub-interface]
- ip address 192.168.10.1 255.255.255.0
- exit
- [Repeat it for VLAN 20]
- interface GigabitEthernet0/0.20
- encapsulation dot1Q 20
- ip address 192.168.20.1 255.255.255.0
- exit
- [Write changes to the router]
- do write
Add Comment
Please, Sign In to add comment