Quantcast
Channel: All SRX Services Gateway posts
Viewing all articles
Browse latest Browse all 17645

Re: Sub-interfaces on a SRX 240h

$
0
0

Dear tbuilt62,

 

No juniper is different from Cisco. The interfaces you quoted are physical interfaces, the vlan subinterfaces are vlan.0, vlan.1, vlan.2 etc. We usually number the subinterface with the same number as the VLAN ID for clarity. The way VLANs are configured in Juniper is different. We configure a vlan :

 

set vlans test vlan-id 200

 

Create a layer 3 interface subinterface ( VLAN interface ) if we need one :

 

set interfaces vlan.200 family inet address x.y.z.w/a

 

Assign the VLAN interface to the vlan :

 

set vlans test l3-interface vlan.200

 

Then add the vlan to a trunk port ( in your case ) note only the last line with vlan members test is new :

 

set interfaces ge-0/0/13 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members OpenStack1
set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members OpenStack0
set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members test

 

Or if we wanted to add a physical port to the vlan as an access port, you do it this way ( port 14 ):

 

set interfaces ge-0/0/14 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members test

 

 


Viewing all articles
Browse latest Browse all 17645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>