Getting in a little over my head... :)
jbrad95706
Member Posts: 225
in CCNA & CCENT
So, I'm trying to setup my 2520 as a DHCP (for inside) / PAT "server", and I have found most of the documentation I need.
The only think I can't seem to find, mostly because my search terms return info pertaining to something else, is how to set the default gateway via dhcp.
If I set a route for 0.0.0.0 0.0.0.0 to e0 nothing; however, if I also set the default-gateway to the ip address of, well, the default gateway - it works.
Shouldn't I be able to have that information get passed from the dhcp server that is on the other end of e0 (outside)?
I setup e0 - ip address dhcp and it get's IP/dns info, just no default gateway info, but my PC's get default gateway info... :
Thanks!
The only think I can't seem to find, mostly because my search terms return info pertaining to something else, is how to set the default gateway via dhcp.
If I set a route for 0.0.0.0 0.0.0.0 to e0 nothing; however, if I also set the default-gateway to the ip address of, well, the default gateway - it works.
Shouldn't I be able to have that information get passed from the dhcp server that is on the other end of e0 (outside)?
I setup e0 - ip address dhcp and it get's IP/dns info, just no default gateway info, but my PC's get default gateway info... :
Thanks!
Comments
-
networker050184 Mod Posts: 11,962 ModA router that routes packets does not use the ip default gateway. You will need a default route, not default gateway. When an interface gets and address from DHCP it should place a static default route in the table (not in the running config). I'm not sure if that is the case with all versions of router/IOS though, I've only tried it on smaller model routers. You can check the routing table to know for sure.An expert is a man who has made all the mistakes which can be made.
-
beh Member Posts: 10 ■□□□□□□□□□in dhcp-config mode use this command: default-router A.B.C.D
edit: where A.B.C.D is the ip address of the interface on the router that the DHCP clients are connecting to -
kryolla Member Posts: 785^^^ this is if your router is acting as a DHCP server then the users would use you as their default gateway
if you have int e0 ip address dhcp then to default out if you are not running a routing protocol on that interface you would do
ip route 0.0.0.0 0.0.0.0 dhcpStudying for CCIE and drinking Home Brew -
jbrad95706 Member Posts: 225^^^ this is if your router is acting as a DHCP server then the users would use you as their default gateway
if you have int e0 ip address dhcp then to default out if you are not running a routing protocol on that interface you would do
ip route 0.0.0.0 0.0.0.0 dhcp
That's what I was missing!
Thanks everyone! -
beh Member Posts: 10 ■□□□□□□□□□^^^ this is if your router is acting as a DHCP server then the users would use you as their default gateway
if you have int e0 ip address dhcp then to default out if you are not running a routing protocol on that interface you would do
ip route 0.0.0.0 0.0.0.0 dhcp
oops, misread the question. my mistake.