SRX

Expand all | Collapse all

Help me Vlan Configure

Jump to Best Answer
  • 1.  Help me Vlan Configure

    Posted 12-03-2015 00:07

    http://i.hizliresim.com/MgllR2.jpg

    How to configure Srx210 port fe-0/0/2

     



  • 2.  RE: Help me Vlan Configure

    Posted 12-03-2015 00:40

    Hi,

     

    set interfaces fe-0/0/2 unit 10 description VLAN-DEFAULT
    set interfaces fe-0/0/2 unit 10 vlan-id 10
    set interfaces fe-0/0/2 unit 10 family inet address 1.2.3.254/24
    set interfaces fe-0/0/2 unit 20 description VLAN-20
    set interfaces fe-0/0/2 unit 20 vlan-id 20
    set interfaces fe-0/0/2 unit 20 family inet address 3.2.1.254/24

     

     



  • 3.  RE: Help me Vlan Configure

    Posted 12-03-2015 02:57

    fe-0/0/2 interface pord mode trunk ? , access ?

     



  • 4.  RE: Help me Vlan Configure

    Posted 12-03-2015 03:03

    Error(s):
    'unit 10'

    1) Only unit 0 is valid for this encapsulation
    2) configuration check-out failed



  • 5.  RE: Help me Vlan Configure

     
    Posted 12-03-2015 04:45

    OK, I notice that there are 2 VLANs required, one as VLAN20 and the other as 'default'. Typically a default VLAN is considered to be a VLAN that untagged frames are assigned to. Because of this, a routed interface with logical units (sub-interfaces) is not going to work.

     

    You need to configure routed virtual interefaces:

     

    set interfaces vlan unit 1 family inet address 192.168.100.1/24
    set interfaces vlan unit 20 family inet address 192.168.110.1/24

     

    Assign them to vlans:

     

    set vlans VLAN20 vlan-id 20
    set vlans VLAN20 l3-interface vlan.20
    set vlans default vlan-id 1
    set vlans default l3-interface vlan.1

     

    Assign these VLANs to the interface but ensure frames for VLAN 1 are untagged:

     

    set interfaces fe-0/0/2 unit 0 family ethernet-switching port-mode trunk
    set interfaces fe-0/0/2 unit 0 family ethernet-switching vlan members VLAN20
    set interfaces fe-0/0/2 unit 0 family ethernet-switching native-vlan-id default

     

    Hope this helps.

     

    BTW the reason for the error on commit is because you had not used this command:

     

    set interfaces fe-0/0/2 vlan-tagging

     

    But you will need to delete all that to use this method.

     



  • 6.  RE: Help me Vlan Configure

    Posted 12-03-2015 06:11

    how to dhcp configure

    vlan1 (default) dhcp -192.168.100.0/24

    vlan20 dhcp - 192.168.110.0/24

     

     



  • 7.  RE: Help me Vlan Configure

     
    Posted 12-03-2015 06:34

    If the solution I gave to you has work then please mark as 'accepted as solution'.

     

    However:

     

    set system services dhcp pool 192.168.100.0/24 address-range low 192.168.100.10
    set system services dhcp pool 192.168.100.0/24 address-range high 192.168.100.254
    set system services dhcp pool 192.168.100.0/24 default-lease-time 3600
    set system services dhcp pool 192.168.100.0/24 name-server 8.8.8.8
    set system services dhcp pool 192.168.100.0/24 name-server 8.8.4.4
    set system services dhcp pool 192.168.100.0/24 router 192.168.100.1

    set system services dhcp pool 192.168.110.0/24 address-range low 192.168.110.10
    set system services dhcp pool 192.168.110.0/24 address-range high 192.168.110.254
    set system services dhcp pool 192.168.110.0/24 default-lease-time 3600
    set system services dhcp pool 192.168.110.0/24 name-server 8.8.8.8
    set system services dhcp pool 192.168.110.0/24 name-server 8.8.4.4
    set system services dhcp pool 192.168.110.0/24 router 192.168.110.1



  • 8.  RE: Help me Vlan Configure

    Posted 12-03-2015 07:09

    VLANS does not work

    the client does not get dhcp ip

     



  • 9.  RE: Help me Vlan Configure

     
    Posted 12-03-2015 07:29

    Have you tried configuring a static IP address on the client and running a ping to the desired address, presumably 192.168.110.1?



  • 10.  RE: Help me Vlan Configure

    Posted 12-03-2015 07:44

    yes,client static ip address 

    ping not working 192.168.110.1



  • 11.  RE: Help me Vlan Configure
    Best Answer

     
    Posted 12-03-2015 07:53

    Would you be able to attach entire configuration?

     

    [edit]
    root@rtr-3# show | no-more



  • 12.  RE: Help me Vlan Configure

    Posted 12-07-2015 22:25

    Regalis 

    thank you very much

    running vlan 1 and 20



  • 13.  RE: Help me Vlan Configure

    Posted 09-30-2017 08:11

    So what was the solution?