cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anonymous
Not applicable

configure netvanta 3140 for a dynamic public ip address

I have an application where the public IP address is dynamic, not static.  I want gig eth 0/2 for the public Internet.  I know that for a static IP you set the default route command 0.0.0.0 0.0.0.0 w.x.y.z (where w.x.y.z is the static IP default gateway) and all works properly.  What do you do with a dynamic public IP address?  I also note if you use web GUI, going to Data --> Router/ Bridge --> Route Table and then in the Gateway section select the Gateway radio knob and go to drop down you have 2 choices "<select interface>" and "null 0"; if I saw "gig 0/2" or similar I would have thought that would do but this is not the case.  I am probably missing something fundamental but I just do not see it.

0 Kudos
1 Reply
Anonymous
Not applicable

Re: configure netvanta 3140 for a dynamic public ip address

Hi there,

In case of DHCP, all you have to do is tell the Adtran to use the DHCP on the WAN interface. Once the IP is learned from an upstream router, the Adtran will also learn the default gateway and automatically set the default route to the gateway obtained from the upstream router. You do not need to populate any default routes in Adtran's configuration when using DHCP.

For example (using CLI here), if this is your gi 0/2 config:

#sh run int gi 0/2

Building configuration...

!

!

interface gig 0/2

  description WAN

  ip address dhcp

  no shutdown

  media-gateway ip primary

!

end

Then the route table would look like this:

#sh ip route

Codes: C - connected, S - static, R - RIP, O - OSPF, B - BGP

       E1 - OSPF external type 1, E2 - OSPF external type 2

       IA - OSPF inter area

Gateway of last resort is 192.168.2.1 gig 0/2

S    0.0.0.0/0 [1/1/0] via 192.168.20.1, gig 0/2

C    192.168..0/24 is directly connected, gig 0/2

I do not have any "ip route" statements in the running config, so as you can see, the gateway of last resort was populated by the Adtran automatically. It would work the same in the case of a public DHCP address also.

Hope this answers your question.