Configure logical Router

Source: Internet
Author: User

Logical route Interface Configuration
 
Edit logical-routers
Edit r8
Set interfaces em1 unit 15 vlan-id 15 family inet address 192.168.15.1/24
 
 
Or
 
 
Set interfaces em1.28 vlan-id 15 family inet address 192.168.28.1/24
 
 
 
Default route configuration for logical routing:
 
 
 
Tutorial topology:
 
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
 
R1:
 
Edit logical-routers r1
Set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
Set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
Edit routing-options
Set static route 0.0.0.0/0 next-hop 10.0.4.13
 
R3:
 
Edit logical-routers r3
Set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
Set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
 
R4:
 
Edit logical-routers r4
Set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
Edit routing-options
Set static route 0.0.0.0/0 next-hop 10.0.2.5
 
 
 
Logical route test:
 
Gouzhongxing @ gouzhongxing & gt; ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq = 0 ttl = 64 time = 0.549 MS
64 bytes from 10.0.4.5: icmp_seq = 1 ttl = 64 time = 0.084 MS
64 bytes from 10.0.4.5: icmp_seq = 2 ttl = 64 time = 0.104 MS
64 bytes from 10.0.4.5: icmp_seq = 3 ttl = 64 time = 0.102 MS
64 bytes from 10.0.4.5: icmp_seq = 4 ttl = 64 time = 0.111 MS
64 bytes from 10.0.4.5: icmp_seq = 5 ttl = 64 time = 0.848 MS
 
Certificate ----------------------------------------------------------------------------------------------------------------------------------------
 
 
 
Static route configuration for logical routing:
 
 
 
Tutorial topology:
 
 
 
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
 
 
 
R1:
 
Edit logical-routers r1
Set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
Set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
Edit routing-options
Set static route 10.0.2.0/30 next-hop 10.0.4.13
 
R3:
 
Edit logical-routers r3
Set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
Set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
 
R4:
 
Edit logical-routers r4
Set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
Edit routing-options
Set static route 10.0.4.0/30 next-hop 10.0.2.5
 
 
 
Logical route test:
 
 
Gouzhongxing @ gouzhongxing & gt; ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq = 0 ttl = 64 time = 0.549 MS
64 bytes from 10.0.4.5: icmp_seq = 1 ttl = 64 time = 0.084 MS
64 bytes from 10.0.4.5: icmp_seq = 2 ttl = 64 time = 0.104 MS
64 bytes from 10.0.4.5: icmp_seq = 3 ttl = 64 time = 0.102 MS
64 bytes from 10.0.4.5: icmp_seq = 4 ttl = 64 time = 0.111 MS
64 bytes from 10.0.4.5: icmp_seq = 5 ttl = 64 time = 0.848 MS
 
 
 
---------------------------------------------------------------
 
 
 
RIP route configuration for logical routing:
 
 
Tutorial topology:
 
 
 
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
 
 
 
R1:
 
Edit logical-routers r1
Set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
Set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
Edit protocols
Set rip group gouzhongxing neighbor em1.13
 
R3:
 
Edit logical-routers r3
Set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
Set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
Edit protocols
Set rip group gouzhongxing neighbor em3.31
Set rip group gouzhongxing neighbor em3.34
 
R4:
 
Edit logical-routers r4
Set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
Edit protocols
Set rip group gouzhongxing neighbor em4.43
 
Delete the ospf protocol:
 
 
Delete protocols ospf
 
 
 
Test:
 
Gouzhongxing @ gouzhongxing & gt; ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq = 0 ttl = 64 time = 0.549 MS
64 bytes from 10.0.4.5: icmp_seq = 1 ttl = 64 time = 0.084 MS
64 bytes from 10.0.4.5: icmp_seq = 2 ttl = 64 time = 0.104 MS
64 bytes from 10.0.4.5: icmp_seq = 3 ttl = 64 time = 0.102 MS
64 bytes from 10.0.4.5: icmp_seq = 4 ttl = 64 time = 0.111 MS
64 bytes from 10.0.4.5: icmp_seq = 5 ttl = 64 time = 0.848 MS
 
 
 
The experiment is successful.
 
From the BLOG of gouzhongxing

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.