Configuration example of cisco router and layer-3 Switch environment, cisco layer-3 Switch

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.