Cisco RIP, DHCP, VLAN

Source: Internet
Author: User

Layer Three switch settings:

switch#
Switch#configure Terminal
Switch (config) #ip routing
Switch (config) #vlan 10
Switch (Config-vlan) #vlan 20
Switch (Config-vlan) #vlan 30
Switch (Config-vlan) #exit
Switch (config) #interface VLAN 10
Switch (config-if) #ip address 192.168.1.254 255.255.255.0
Switch (config-if) #no shutdown
Switch (config-if) #exit
Switch (config) #interface VLAN 20
Switch (config-if) #ip address 192.168.2.254 255.255.255.0
Switch (config-if) #no shutdown
Switch (config-if) #exit
Switch (config) #interface fastethernet 0/1
Switch (config-if) #no shutdown
Switch (config-if) #switchport trunk Encapsulation dot1q
Switch (config-if) #switchport mode trunk

Switch (config-if) #exit
Switch (config) #router rip
Switch (config-router) #version 2
Switch (config-router) #no auto-summary
Switch (config-router) #network 192.168.1.0
Switch (config-router) #network 192.168.2.0
Switch (config-router) #network 192.168.4.0
Switch (Config-router) #exit
Switch (config) #interface fastethernet 0/2
Switch (config-if) #no Switchport
Switch (config-if) #ip address 192.168.4.1 255.255.255.0
Switch (config-if) #no shutdown
Switch (config-if) #exit
Switch (config) #ip DHCP pool VLAN10
Switch (dhcp-config) #network 192.168.1.0 255.255.255.0
Switch (dhcp-config) #default-router 192.168.1.254
Switch (dhcp-config) #dns-server 202.102.128.68
Switch (Dhcp-config) #exit
Switch (config) #ip DHCP pool Vlan20
Switch (dhcp-config) #network 192.168.2.0 255.255.255.0
Switch (dhcp-config) #default-router 192.168.2.254
Switch (dhcp-config) #dns-server 202.102.128.68
Switch (dhcp-config) #

Switch 1 settings:

Switch>ena
Switch#configure Terminal
Switch (config) #interface fastethernet 0/3
Switch (config-if) #switchport mode trunk
Switch (config-if) #exit
Switch (config) #vlan 10
Switch (Config-vlan) #vlan 20
Switch (Config-vlan) #exit
Switch (config) #interface F0/1
Switch (config-if) #switchport Access VLAN 10
Switch (config-if) #exit
Switch (config) #interface F0/2
Switch (config-if) #switchport Access VLAN 20
PC0 automatically gets the address of VLAN10, PC1 automatically gets the address of Vlan20

Router settings:

Router>ena
Router#configure T
Router (config) #interface fastethernet 0/0
Router (config-if) #ip address 192.168.4.2 255.255.255.0
Router (config-if) #no shutdown

Router (config-if) #exit

Router (config) #interface fastethernet 0/1
Router (config-if) #ip address 192.168.3.254 255.255.255.0
Router (config-if) #no shutdown

Router (config-if) #exit
Router (config) #router rip
Router (config-router) #version 2
Router (config-router) #no auto-summary
Router (config-router) #network 192.168.3.0
Router (config-router) #network 192.168.4.0
Router (Config-router) #end
Router#configure Terminal
Router (config) #ip DHCP pool vlan30
Router (dhcp-config) #network 192.168.3.0 255.255.255.0
Router (dhcp-config) #default-router 192.168.3.254
Router (dhcp-config) #dns-server 202.102.128.68
PC2 automatically gets the VLAN30IP address.

Cisco RIP, DHCP, VLAN

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.