Switching

 View Only
last person joined: 8 days ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  How to configure one device per EX4850 interface

    Posted 06-28-2024 18:53

    Hello,

    I am a networking newbie nitwit. My company is between IT staff members and because I've assisted the IT team in the past with tasks this has fallen on to me.

    I've been tasked with making the network illustrated below work.

    We have an EX4650/QFX5120 switch to connected multiple devices using fiber optic cables. The device IPs were assigned by the architects. I choose the interface IPs on a whim.

    How do I configure this so that each device can communicate with each other?

    I thought this would be something like a network of one with the thought of creating static routes. In my mind this was something like setting the ip addresses of the interfaces


    set interfaces xe-0/0/2 unit 0 family inet address 172.16.0.105/32
    set interfaces xe-0/0/4 unit 0 family inet address 172.16.0.104/32
    set interfaces xe-0/0/6 unit 0 family inet address 172.16.0.103/32
    set interfaces xe-0/0/8 unit 0 family inet address 172.16.0.102/32

    and then configuring static routes for the endpoints

    set static route 172.16.0.5/32 next-hop 172.16.0.105
    set static route 172.16.0.4/32 next-hop 172.16.0.104
    set static route 172.16.0.3/32 next-hop 172.16.0.103
    set static route 172.16.0.2/32 next-hop 172.16.0.102

    But this doesn't work. The static routes don't get added.

    show | compare

    after the static route changes don't have any configuration changes. And even after I commit and test with ping from it indicates no route to host, and the show route 172.16.0.2 etc. indicate there is no route (as expected).

    I would appreciate some guidance or references to help with this? I've been googling and youtubing for the past two days to try and resolve this and I don't feel like I'm getting anywhere. I strongly suspect I'm not even looking for the correct terminology.

    Thank you in advance for your patience and advice.



    ------------------------------
    John Rocha
    ------------------------------



  • 2.  RE: How to configure one device per EX4850 interface

    Posted 06-28-2024 19:43

    The setup you show does not make logical sense. 

    You need to find out from the architect what the subnet is for those devices.  Typically these are going to be in the same range like 172.16.0.0/29 where you would put the 172.16.0.1 on the QFX virtual interface and place all the interfaces facing the devices in the same vlan.

    But whatever the expectation is creating host only addresses on an interface is not typical and not a good idea.



    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------



  • 3.  RE: How to configure one device per EX4850 interface

    Posted 07-01-2024 15:49

    Thank you for your feedback @spuluka.

    The architect is the individual that no longer works here and we don't have documentation for how the configuration was delivered previously, just that the endpoint addresses were set to 172.16.0.2/.3/.4/.5 etc. The interface addresses where all me trying anything to get this to work, which as you pointed out is incorrect.

    You're VLAN tip was great. I started reading and "youtubing" more about juniper VLANS and found "Configure Trunks and Access Ports on Juniper Devices". Which provided some additional information and combined with other comments I was able to configure so the endpoint can ping each other.

    Thank you for your insights.



    ------------------------------
    John Rocha
    ------------------------------



  • 4.  RE: How to configure one device per EX4850 interface

    Posted 07-02-2024 08:39

    The free JNCIA-Junos course is a great start for things like this.



    ------------------------------
    PER GRANATH
    ------------------------------



  • 5.  RE: How to configure one device per EX4850 interface
    Best Answer

    Posted 07-01-2024 15:46

    The device IP that the architect assigned is OK, and will be in the same subnet. Lets assume the architect also planned for the subnet to be 172.16.0.0/24, so subnet mask 255.255.255.0 and with default gateway 172.16.0.1 which will be the IP address on the switch (assuming it will be routing). 

    So with all the four external devices in rhe same subnet, you need the four ports on the switch to be in the VLAN, and without any IP address on the actual ports. Insteas yiu will configure a VLAN, configure the oorts as access ports to that VLAN, and then configure an IRB interface in the VLAN and put the IP of the default gateway on that IRB. 



    ------------------------------
    PER GRANATH
    ------------------------------