Junos
Junos

How to use a Routed subnet from ISP via EX3200?

[ Edited ]
‎08-14-2015 01:07 PM

Hi all,

This one looked easy to me initially but I just cannot figure it out, perhaps I am missing something obvious?

My setup is very simple:

[ISP] ---- [My EX3200] ---- [servers]

ISP gave me 20.0.0.0/29 for routing
ISP also gave me a public 30.0.0.0/24 and routed it to me.

My config:

interfaces {
    interface-range servers {
        member-range ge-0/0/2 to ge-0/0/15;
        unit 0 {
            family ethernet-switching {
                port-mode access;
                vlan {
                    members SERVERS;
                }
            }
        }
    }
 
    ge-0/0/1 {
        unit 0 {
            description ISP-uplink;
            family inet {
                address 20.0.0.2/29;
                address 30.0.0.111/24;
            }
        }
    }
    vlan {
        unit 1000 {
            family inet {
                address 30.0.0.222/24;
            }
        }
    }

...
}
routing-options {
    static {
        route 0.0.0.0/0 {
            next-hop 20.0.0.1/29;
            retain;
            no-readvertise;
            preference 99999;
        }
    }
}

vlans {
    SERVERS {
        vlan-id 1000;
        l3-interface vlan.1000;
    }
}

 


From internet I can ping 30.0.0.111 but not 30.0.0.222, why?
On the switch itself I can ping both IPs.

root@# run show route 30.0.0.222

inet.0: 8 destinations, 10 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

30.0.0.222/32    *[Local/0] 01:22:37
                      Local via vlan.1000



My goal is to use 30.0.0.0/24 on my servers. Any suggestions are welcome.

1 REPLY 1
Junos

Re: How to use a Routed subnet from ISP via EX3200?

‎08-14-2015 02:48 PM

Just got a clarification from my ISP - they routed the 30.0.0.0/24 to my VLAN and not to the port. This is because I have another EX2200 on the same network that will also be using a few IPs from 30.0.0.0/24.

 

At least now I think I understand why I can ping 30.0.0.111 but not 30.0.0.222 - my EX3200 responds to ARP requests for 30.0.0.111 but not for 30.0.0.222 as it is inside of a VLAN. Is my assumption correct? If so, what is the best way to deal with ARP in this case?