Configuration example of cisco router and layer-3 Switch environment, cisco layer-3 Switch
Simple environment configuration instance for cisco router & layer-3 Switch
I. network topology:
Ii. configuration command:
1. vro Configuration:
Interface FastEthernet0/0
Ip address 10.66.88.222 255.255.255.0
Ip nat outside
Duplex auto
Speed auto
Interface FastEthernet0/1
Ip address 192.168.1.1 255.255.255.0
Ip nat inside
Duplex auto
Speed auto
Interface Vlan1
No ip address
Shutdown
Ip nat inside source list 1 interface FastEthernet0/0 overload
Ip classless
Ip route 192.168.2.0 255.255.255.0 192.168.1.222
Ip route 192.168.3.0 255.255.255.0 192.168.1.222
Access-list 1 permit 192.168.0.0 0.255.255
3. layer-3 Switch configuration:
Hostname L3-SW
Ip dhcp pool vlan2pool
Network 192.168.3.0 255.255.255.0
Default-router 192.168.3.1
Dns-server 202.101.172.35
Ip dhcp pool vlan1pool
Network 192.168.2.0 255.255.255.0
Default-router 192.168.2.1
Dns-server 202.101.172.35
Interface FastEthernet0/1
No switchport
Ip address 192.168.1.222 255.255.255.0
Duplex auto
Speed auto
Interface FastEthernet0/2
Switchport mode trunk
Interface FastEthernet0/5
Switchport mode trunk
Interface Vlan1
Ip address 192.168.2.1 255.255.255.0
Interface Vlan2
Ip address 192.168.3.1 255.255.255.0
Ip classless
Ip route 0.0.0.0 0.0.0.0 192.168.1.1
Iv. Layer 2 switch Configuration:
1. switch0 Configuration:
Hostname sw0
Interface FastEthernet0/1
Switchport mode trunk
Interface FastEthernet0/2
Switchport mode access
2. switch1 Configuration:
Hostname sw1
Interface FastEthernet0/1
Switchport mode trunk
Interface FastEthernet0/2
Switchport access vlan 2
Switchport mode access