11-14-2018 03:01 PM
I'm working on packet tracer and I'm trying to make a default route to the internet with a DNS of 8.8.8.8 and a default gateway on a router with 10.20.30.161.
how do I make a default route to the internet using the exit interface?
11-14-2018 03:26 PM
i don't fully comprehend your objectives, but see below for syntax
asa
route outside 0.0.0.0 0.0.0.0 NXT-HOP-IP def route
route outside 8.8.8.8 255.255.255.255 NXT-HOP-IP host route
where outside is the name of your wan interface
router
ip route 0.0.0.0 0.0.0.0 NXT-HOP-IP
ip route 8.8.8.8 255.255.255.255 NXT-HOP-IP
you can use the exit interface on the device instead of the next hop ip
regards, mk
please rate if helpful or solved :)
11-14-2018 04:52 PM - edited 11-15-2018 04:28 AM
Hello
When you specify an next hop interface rather than an ip address your are telling the router that any route destination via this interface is directly connected. The router will in turn produce unwarranted arp requests for every L2 address for every route off this interface which can in some cases not only fail but will also incur a lot or router process
This is where proxy arp can assist so that the next-hop router will reply to any arp request with it’s own interface address however you are then relying on another router having this feature enabled
This situation is only applicable on multipoint interfaces such as Ethernet - P2P interfaces it would not mater if the next-hop interface is specified as it is indeed directly connected thus the router will use the L2 address if it’s directly connected neighbor.
So it is suggested that always try to use an next hop ip address rather than an next hop interface for static routing
Lastly specifying a static route for dns will not assist in dns resolution for your clients unless the router is enabled to be a dns forwarder.
The way you should accomplish this would be to specify the dns servers in the scopes of your dhcp servers.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide