SRX Services Gateway
Highlighted
SRX Services Gateway

Sub-interface with tagged VLAN in vSRX

[ Edited ]
‎04-18-2016 07:52 AM

Hi.

 

It is possible to create tagged and untagged sub-interfaces simultaneously in vSRX?

Something like these:

ge-0/0/0 {
    unit 0 {
        family inet {
            address 192.168.2.100/24;
        }
    }
    unit 1 {
        vlan-id 10;
        family inet {
            address 192.168.1.100/24;
        }
    }
}
2 REPLIES 2
Highlighted
SRX Services Gateway

Re: Sub-interface with tagged VLAN in vSRX

‎04-18-2016 07:59 PM

Hi,

 

The answer is no. U need to remove unit 0 if u want do vlan-tagging.

 

 

Thanks

Highlighted
SRX Services Gateway
Solution
Accepted by topic author ZendX
‎04-18-2016 11:56 PM

Re: Sub-interface with tagged VLAN in vSRX

‎04-18-2016 10:38 PM

Yes you can, but you will need to enable flexible-vlan-tagging and use a native vlan (documentation).

 

Your confif would look like:

 

ge-0/0/0 {
    flexible-vlan-tagging;
    native-vlan-id 20;
    unit 0 {
        vlan-id 20;
        family inet {
            address 192.168.2.100/24;
        }
    }
    unit 1 {
        vlan-id 10;
        family inet {
            address 192.168.1.100/24;
        }
    }
}
Feedback