Let 3 switches : Faculty, Physics and Chemistry. Port 0 of Faculty connects to port 0 of Physics and port 1 of Faculty connects to port 0 of Chemistry. In this example, Faculty is the distribution switch and the other switches are the access switches. Let the following configuration :
set vlan SWITCHES vlan-id 100 l3-interface vlan.100 set vlan SWITCHES interface ge-0/0/0 set vlan SWITCHES interface ge-0/0/1 set interface vlan unit 100 family inet address 220.127.116.11/24 set routing-options static route 18.104.22.168/24 next-hop 22.214.171.124 set routing-options static route 126.96.36.199/24 next-hop 188.8.131.52
set interface ge-0/0/0 unit 0 family inet address 184.108.40.206/24 set routing-options static route 0.0.0.0/0 next-hop 220.127.116.11 set vlans COMPUTERS vlan-id 100 l3-interface vlan.100 set interface vlan unit 100 family inet address 18.104.22.168/24
set interface ge-0/0/0 unit 0 family inet address 22.214.171.124/24 set routing-options static route 0.0.0.0/0 next-hop 126.96.36.199 set vlans COMPUTERS vlan-id 100 l3-interface vlan.100 set interface vlan unit 100 family inet address 188.8.131.52/24
How do we configure VLAN trunking so that Physics and Chemistry can both use IP addresses from subnets 184.108.40.206/24 and 220.127.116.11/24?
I analyzed the Juniper documentation :
From their example, what I’m struggling with is :
set interfaces vlan unit 0 family inet address 192.0.2.2/25 set interfaces vlan unit 1 family inet address 192.0.2.130/25
This will result in IP addresses 192.0.2.2 and 192.0.2.130 being “reserved” for the switch. In my example, IP addresses 18.104.22.168 and 22.214.171.124 should remain usable for members of the COMPUTERS VLAN. Prior to the VLAN trunking, IP addresses .0, .1 and .255 of subnets 126.96.36.199/24 and 188.8.131.52/24 would be reserved for the network, gateway and broadcast addresses, respectively. Does this have to change after establishing the trunk?