Router integrated route Configuration

Source: Internet
Author: User

Vro integrated routing configuration layer-3 Switch www.2cto.com Switch> enableSwitch # conf tEnter configuration commands, one per line. end with CNTL/Z. switch (config) # vlan 2 Switch (config-vlan) # exitSwitch (config) # interface fastEthernet 0/2 Switch (config-if) # switchport access vlan 2 Switch (config-if) # no shutdownSwitch (config-if) # exitSwitch (config) # interface vlan 1 Switch (config-if) # ip address 192.168.1.1 255.255.0switch (config-if) # no shutdown Switch (config-if) # exitSwitch (config) # interface vlan 2% LINK-5-CHANGED: Interface Vlan2, changed state to upSwitch (config-if) # ip address 192.168.2.1 255.255.255.0Switch (config-if) # no shutdownSwitch (config-if) # end Switch # show ip routeSwitch # enableSwitch # configure terminalEnter configuration commands, one per line. end with CNTL/Z. switch (config) # router ripSwitch (config-router) # network 192.168.1.0Switch (config-router) # network 192.168.2.0Switch (config-router) # version 2 configure R1 www.2cto.com Router> enableRouter # configure terminalEnter configuration commands, one per line. end with CNTL/Z. router (config) # interface fastEthernet 0/0 Router (config-if) # ip address 192.168.2.2 255.255.255.0Router (config-if) # no shutdown % LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router (config) # interface fastEthernet 1/0 Router (config-if) # ip address 192.168.3.1 255.255.255.0Router (config-if) # no shutdown % LINK-5-CHANGED: Interface FastEthernet1/0, changed state to upRouter (config-if) # exitRouter (config) # router ripRouter (config-router) # network 192.168.2.0Router (config-router) # version 2 Router (config-router) # exitRouter (config) # router ospf 1 Router (config-router) # network 192.168.3.0 0.0.0.255 area 0 configure R2Router> enableRouter # configure terminalEnter configuration commands, one per line. end with CNTL/Z. router (config) # interface fastEthernet 0/0 Router (config-if) # ip address 192.168.3.2 255.255.255.0Router (config-if) # no shutdown % LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router (config-if) # exitRouter (config) # interface fastEthernet 1/0 Router (config-if) # ip address 192.168.4.1 255.255.255.0Router (config-if) # no shutdown % LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up Router (config-if) # exitRouter (config) # router ospf 1 Router (config-router) # network 192.168.3.0 0.0.255 area 0 Router (config-router) # network 192.168.4.0 0.0.0.255 area 0

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.