...
Code Block |
---|
admin@XorPlus# set vlans vlan-id 2 admin@XorPlus# set vlans vlan-id 3 admin@XorPlus# set vlans vlan-id 4 admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2 admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3 admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 4 admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2 admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3 admin@XorPlus# set vlans vlan-id 4 l3-interface vlan-4 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# set l3-interface vlan-interface vlan-2 address 10.10.1.1 prefix-length 24 admin@XorPlus# set l3-interface vlan-interface vlan-3 address 10.10.3.1 prefix-length 24 admin@XorPlus# set l3-interface vlan-interface vlan-4 address 10.10.6.1 prefix-length 24 admin@XorPlus# set protocols static route 10.10.2.0/24 next-hop 10.10.6.2 admin@XorPlus# set protocols static route 0.0.0.0/0 next-hop 10.10.3.2 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# |
Verify the static route entry in the RIB as follows:
Code Block |
---|
admin@XorPlus# run show route table ipv4 unicast final 0.0.0.0/0 [static(1)/1] > to 10.10.3.2 via vlan-3/vlan-3 static RIB entry for static ==================== Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued route, r - rejected route S>* 10.10.2.0/24 [static(1)/10] >via to 10.10.6.21, via vlan-4/vlan-4 10.10.1, weight 1, 00:40:35 S>* 0.0.0.0/240 [connected(0)1/0] > via vlan-2/vlan-2 10.10.3.0/24 [connected(0)/0] > via 1, vlan-3/vlan-3 10.10.6.0/24 [connected(0)/0] > via vlan-4/vlan-4 admin@XorPlus# , weight 1, 05:00:04 |
Configuring Switch B
Configure 3 VLAN interfaces for networks 10.10.2.1/24, 10.10.4.1/24, and 10.10.6.2/24. Then, configure a static route to 10.10.1.0/24 and a default route.
Code Block |
---|
admin@XorPlus# set vlans vlan-id 2 admin@XorPlus# set vlans vlan-id 3 admin@XorPlus# set vlans vlan-id 4 admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2 admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3 admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 4 admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2 admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3 admin@XorPlus# set vlans vlan-id 4 l3-interface vlan-4 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# set l3-interface vlan-interface vlan-2 address 10.10.2.1 prefix-length 24 admin@XorPlus# set l3-interface vlan-interface vlan-3 address 10.10.4.1 prefix-length 24 admin@XorPlus# set l3-interface vlan-interface vlan-4 address 10.10.6.1 prefix-length 24 admin@XorPlus# set protocols static route 10.10.1.0/24 next-hop 10.10.6.1 admin@XorPlus# set protocols static route 0.0.0.0/0 next-hop 10.10.4.2 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# |
Verify the static route entry in the RIB:
Code Block |
---|
admin@XorPlus# run show route static RIB entry for static ==================== Codes: K - kernel route, tableC ipv4- unicastconnected, final 0.0.0.0/0 [static(1)/1] > to 10.10.4.2 via vlan-3/vlan-3S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued route, r - rejected route S>* 10.10.1.0/24 [static(1)/10] >via to 10.10.6.1, via vlan-4/vlan-4 10.10.2, weight 1, 00:40:35 S>* 0.0.0.0/240 [connected(0)1/0] > via vlan-2/vlan-2 10.10.4.0/24 [connected(0)/0] > via1, vlan-3/vlan-3 10.10.6.0/24 [connected(0)/0] > via vlan-4/vlan-4 admin@XorPlus# , weight 1, 05:00:04 |
Configuring Switch C
Configure 3 VLAN interfaces for networks 10.10.3.2/24, 10.10.4.2/24, and 10.10.5.2/24. Then, configure a static route to 10.10.1.0/24 and a default route.
Code Block |
---|
admin@XorPlus# set vlans vlan-id 2 admin@XorPlus# set vlans vlan-id 3 admin@XorPlus# set vlans vlan-id 4 admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2 admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3 admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 4 admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2 admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3 admin@XorPlus# set vlans vlan-id 4 l3-interface vlan-4 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# set l3-interface vlan-interface vlan-2 address 10.10.3.2 prefix-length 24 admin@XorPlus# set l3-interface vlan-interface vlan-3 address 10.10.4.2 prefix-length 24 admin@XorPlus# set l3-interface vlan-interface vlan-4 address 10.10.5.2 prefix-length 24 admin@XorPlus# set protocols static route 10.10.1.0/24 next-hop 10.10.3.1 admin@XorPlus# set protocols static route 10.10.2.0/24 next-hop 10.10.4.1 admin@XorPlus# set protocols static route 10.10.6.0/24 next-hop 10.10.3.1 admin@XorPlus# set protocols static route 0.0.0.0/0 next-hop 10.10.5.1 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# |
Verify the static route entry in the RIB:
Code Block |
---|
admin@XorPlus# run show route static RIB entry for static ==================== Codes: K - kernel route, tableC ipv4- unicastconnected, final 0.0.0.0/0 [static(1)/1] > to 10.10.5.1 via vlan-4/vlan-4S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued route, r - rejected route S>* 10.10.1.0/24 [static(1)/10] >via to 10.10.3.1 via2, vlan-2/vlan-2, weight 1, 00:40:35 S>* 10.10.2.0/24 [static(1)/10] >via to 10.10.4.12, via vlan-3/vlan-3, weight 1, 00:40:35 S>* 10.10.6.0/24 [static(1)/10] >via to 10.10.3.12, via vlan-2/vlan-2 10.10.3.0/24 [connected(0)/0] > via vlan-2/vlan-2 10.10.4.0/24 [connected(0)/0] > via vlan-3/vlan-3, weight 1, 00:40:35 S>* 0.0.0.0/0 [1/0] via 10.10.5.0/24 [connected(0)/0] > via 2, vlan-4/vlan-4 admin@XorPlus# , weight 1, 05:00:04 |