You are on page 1of 5

Sample Implementing VLAN and Inter-VLAN Routing

Table for IP Addressing:


@ VLAN 10 - Engineer
Network Address 192.168.100.0
Subnet Mask 255.255.255.0
Default Gateway 192.168.100.1
Engr 1 (PC) 192.168.100.2
Engr 2 (PC) 192.168.100.3

@ VLAN 100 - Sales


Network Address 192.168.150.0
Subnet Mask 255.255.255.0
Default Gateway 192.168.150.1
Sales 1 (PC) 192.168.150.2
Sales 2 (PC) 192.168.150.3
Network Configuration
@ Switch2
En
Config t
Hostname Switch2
Enable secret mypassword123
No ip domain-lookup
Vlan 10
Name Engineer
Vlan 100
Name Sales
Exit
Int f0/1
Switchport mode access
Switchport access vlan 10
Int f0/5
Switchport mode access
Switchport access vlan 10
Int f0/10
Switchport mode access
Switchport access vlan 10
Int range f0/15-20
Switchport mode access
Switchport access vlan 10
Int range f0/2-4
Switchport mode access
Switchport access vlan 100
Int range f0/11-14
Switchport mode access
Switchport access vlan 100
End
Int range f0/23-24
Switchport mode trunk
Int range g0/1-2
Switchport mode trunk
End
Copy run start

@ Switch3
En
Config t
Hostname Switch3
Enable secret mypassword123
No ip domain-lookup
Vlan 10
Name Engineer
Vlan 100
Name Sales
exit
Int f0/1
Switchport mode access
Switchport access vlan 10
Int f0/5
Switchport mode access
Switchport access vlan 10
Int f0/10
Switchport mode access
Switchport access vlan 10
Int range f0/15-20
Switchport mode access
Switchport access vlan 10
Int range f0/2-4
Switchport mode access
Switchport access vlan 100
Int range f0/11-14
Switchport mode access
Switchport access vlan 100
Exit
Int range f0/23-24
Switchport mode trunk
Int range g0/1-2
Switchport mode trunk
End
Copy run start

@ Switch1
En
Config t
Hostname Switch2
Enable secret mypassword123
No ip domain-lookup
Int range f0/22-24
Switchport mode trunk
Int range g0/1-2
Switchport mode trunk
End
Copy run start
@ Office_Comp._Network
En
Config t
Hostname Office_Comp._Network
Enable secret mypassword123
No ip domain-lookup
Int f0/1
No shut
Int f0/1.10
Encapsulation dot1q 10
Ip add 192.168.100.1 255.255.255.0
Int f0/1.100
Encapsulation dot1q 100
Ip add 192.168.150.1 255.255.255.0
exit
end
Copy run start

You might also like