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