For instance: PC/Radius server (10.10.10.5) (Vlan 10)-------Layer 2 switch=====Trunk(ae0)====EX4600(layer 3)
IRB.10: 10.10.10.1
IRB.20: 20.20.20.1
IRB.30: 30.30.30.1
- Create three IRB that is IRB.10, IRB20 and IRB30 which is in routing instance:
set vlans V10 vlan-id 10
set vlans V10 l3-interface irb.10
set vlans V20 vlan-id 20
set vlans V20 l3-interface irb.20
set vlans V30 vlan-id 30
set vlans V30 l3-interface irb.30
set routing-instances Test instance-type virtual-router
set routing-instances Test interface irb.10
set routing-instances Test interface irb.20
set routing-instances Test interface irb.30
set routing-instances Test routing-options interface-routes rib-group inet group1
- Imported the routes inet.0 to routing instance Test.
set routing-options interface-routes rib-group inet group1
set routing-options rib-groups group1 import-rib inet.0
set routing-options rib-groups group1 import-rib Test.inet.0
- Loopback interface which is a part of inet.0
set interfaces lo0 unit 0 family inet address 1.1.1.1/24
- The routing table shows like this:
root@jtac# run show route
inet.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 00:58:18
> to 10.219.43.1 via em0.0
1.1.1.0/24 *[Direct/0] 06:09:20
> via lo0.0
1.1.1.1/32 *[Local/0] 06:09:20
Local via lo0.0
10.10.10.0/24 *[Direct/0] 00:48:08
> via irb.10
10.10.10.1/32 *[Local/0] 00:48:08
Local via irb.10
10.219.43.0/26 *[Direct/0] 00:57:04
> via em0.0
10.219.43.12/32 *[Local/0] 00:57:04
Local via em0.0
20.20.20.0/24 *[Direct/0] 04:34:49
> via irb.20
20.20.20.1/32 *[Local/0] 04:34:49
Local via irb.20
30.30.30.0/24 *[Direct/0] 04:34:49
> via irb.30
30.30.30.1/32 *[Local/0] 04:34:49
Local via irb.30
Test.inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[Direct/0] 04:41:22
> via lo0.0
1.1.1.1/32 *[Local/0] 04:41:22
Local via lo0.0
10.10.10.0/24 *[Direct/0] 00:48:08
> via irb.10
10.10.10.1/32 *[Local/0] 00:48:08
Local via irb.10
20.20.20.0/24 *[Direct/0] 05:48:05
> via irb.20
20.20.20.1/32 *[Local/0] 05:52:50
Local via irb.20
30.30.30.0/24 *[Direct/0] 05:48:05
> via irb.30
30.30.30.1/32 *[Local/0] 05:52:50
Local via irb.30
- Configured Radius server details on switch & ensure what IP you specify on RADIUS Server for EX as client.
set system radius-server 10.10.10.5 secret "$9$0ERa1EyM87s2alK2aZU.mO1R"
set system radius-server 10.10.10.5 source-address 1.1.1.1 >>>>>>>>loopback address
Another workaround would be to connect back-2-back interface creating a loop.
Loop 2 interfaces, one of the interfaces was configured under the Master/default instance with an ip address on X subnet for example say (10.0.0.1/30), and the other one was set the same way (10.0.0.2/30), but it was configured under the routing-Instance(XYZ). The idea behind this is to send the traffic to the routing instance, through the physical looped interface, so an static route pointing to the Radius server IP configured as follows:
set routing-options static route next-hop x.x.x.x.
IRB.10: 10.10.10.1
IRB.20: 20.20.20.1
IRB.30: 30.30.30.1
- Create three IRB that is IRB.10, IRB20 and IRB30 which is in routing instance:
set vlans V10 vlan-id 10
set vlans V10 l3-interface irb.10
set vlans V20 vlan-id 20
set vlans V20 l3-interface irb.20
set vlans V30 vlan-id 30
set vlans V30 l3-interface irb.30
set routing-instances Test instance-type virtual-router
set routing-instances Test interface irb.10
set routing-instances Test interface irb.20
set routing-instances Test interface irb.30
set routing-instances Test routing-options interface-routes rib-group inet group1
- Imported the routes inet.0 to routing instance Test.
set routing-options interface-routes rib-group inet group1
set routing-options rib-groups group1 import-rib inet.0
set routing-options rib-groups group1 import-rib Test.inet.0
- Loopback interface which is a part of inet.0
set interfaces lo0 unit 0 family inet address 1.1.1.1/24
- The routing table shows like this:
root@jtac# run show route
inet.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 00:58:18
> to 10.219.43.1 via em0.0
1.1.1.0/24 *[Direct/0] 06:09:20
> via lo0.0
1.1.1.1/32 *[Local/0] 06:09:20
Local via lo0.0
10.10.10.0/24 *[Direct/0] 00:48:08
> via irb.10
10.10.10.1/32 *[Local/0] 00:48:08
Local via irb.10
10.219.43.0/26 *[Direct/0] 00:57:04
> via em0.0
10.219.43.12/32 *[Local/0] 00:57:04
Local via em0.0
20.20.20.0/24 *[Direct/0] 04:34:49
> via irb.20
20.20.20.1/32 *[Local/0] 04:34:49
Local via irb.20
30.30.30.0/24 *[Direct/0] 04:34:49
> via irb.30
30.30.30.1/32 *[Local/0] 04:34:49
Local via irb.30
Test.inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[Direct/0] 04:41:22
> via lo0.0
1.1.1.1/32 *[Local/0] 04:41:22
Local via lo0.0
10.10.10.0/24 *[Direct/0] 00:48:08
> via irb.10
10.10.10.1/32 *[Local/0] 00:48:08
Local via irb.10
20.20.20.0/24 *[Direct/0] 05:48:05
> via irb.20
20.20.20.1/32 *[Local/0] 05:52:50
Local via irb.20
30.30.30.0/24 *[Direct/0] 05:48:05
> via irb.30
30.30.30.1/32 *[Local/0] 05:52:50
Local via irb.30
- Configured Radius server details on switch & ensure what IP you specify on RADIUS Server for EX as client.
set system radius-server 10.10.10.5 secret "$9$0ERa1EyM87s2alK2aZU.mO1R"
set system radius-server 10.10.10.5 source-address 1.1.1.1 >>>>>>>>loopback address
Another workaround would be to connect back-2-back interface creating a loop.
Loop 2 interfaces, one of the interfaces was configured under the Master/default instance with an ip address on X subnet for example say (10.0.0.1/30), and the other one was set the same way (10.0.0.2/30), but it was configured under the routing-Instance(XYZ). The idea behind this is to send the traffic to the routing instance, through the physical looped interface, so an static route pointing to the Radius server IP configured as follows:
set routing-options static route