Ethernet Switching
Highlighted
Ethernet Switching

ex2200 default gateway

‎01-26-2018 01:50 AM

Hello colleagues,
I have one simple question, but I not know how do it.

So, i have switch EX2200 as access switch in network, by cisco  have command ip default-gateway

Do have juniper analouges command or i must use set routins-options default <host>?

7 REPLIES 7
Highlighted
Ethernet Switching

Re: ex2200 default gateway

‎01-26-2018 03:03 AM

routing is per default enabled, even in an EX2200, so you just have to configure a static route for 0.0.0.0/0:

 

set routing-options static route 0.0.0.0/0 next-hop <gateway-ip>


--
Best regards,

Jonas Hauge Klingenberg
Juniper Ambassador & Technology Architect, SEC DATACOM A/S (Denmark)
Highlighted
Ethernet Switching

Re: ex2200 default gateway

‎01-26-2018 03:18 AM

Ok, I thought same way.
One yet question, how be with dhcp-relay? DHCP-relay needed configure on switch (by access role)?

Highlighted
Ethernet Switching

Re: ex2200 default gateway

‎01-26-2018 07:12 AM

For DHCP-Relay, could you elaborate? You want this switch to be bootp or dhcp-relay agent?

 

/Karan Dhanak
Highlighted
Ethernet Switching

Re: ex2200 default gateway

[ Edited ]
‎01-30-2018 04:06 AM

Simplified scheme in attache.
We talk about switch2. Do should i configure DHCP-relay on switch2?

 

Juniper.png

Highlighted
Ethernet Switching

Re: ex2200 default gateway

‎01-30-2018 04:24 AM

Switch1 already doing DHCP Relay.. yes?

Why cascade Relay on switch2.. how about a trunk link between the Switch2 to switch1.

 

For instance:

PC DHCP/BOOTP => SW1 <Trunk> SW2 => DHCP SERVER

 

 

 

 

/Karan Dhanak
Highlighted
Ethernet Switching

Re: ex2200 default gateway

‎01-30-2018 05:21 AM

"witch1 already doing DHCP Relay.. yes?"

Yes.

 

"Why cascade Relay on switch2.. how about a trunk link between the Switch2 to switch1.

 For instance:

PC DHCP/BOOTP => SW1 <Trunk> SW2 => DHCP SERVER"

Such a network design, DHCP server is outside location. New switch  need for connect new users. Of course between switch1 and switch2 trunk link.

 

 

 

 

Highlighted
Ethernet Switching

Re: ex2200 default gateway

‎01-30-2018 06:35 AM

Okay, So Relay on SW2 for new users, grabs DHCP Req & points to DHCP Server IP.

SW1 which is L3 knows how to route towards DHCP server IP just does IPforwarding then.

 

 

 

 

 

/Karan Dhanak
Feedback