Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

adding public ip to a router

hi,

how do we add public ip to the router? is it the same with adding ip to its interface ? what port do we usually add it?

thanks

12 REPLIES

adding public ip to a router

Hello

You add the address to the interface connecting to the public network?

conf t

interface xxx
ip address x.x.x.x y.y.y.y

res

Paul

Please don't forget to rate any posts that have been helpful.

Thanks.

Please don't forget to rate any posts that have been helpful. Thanks.

adding public ip to a router

hi driver..thanks..

is it possible to put 2 or more public ip address into the wan interface?

Silver

adding public ip to a router

It sure is - use a seconday address:

conf t

interface xxx
ip address x.x.x.x y.y.y.y

ip address x.x.x.z y.y.y.y secondary

By the way I am curious why you are asking this question. The router does not care about whether an address is public or private.

adding public ip to a router

hi,

do may i ask what is the maximum no. of public ip that can be added to an interface?

thanks

Silver

adding public ip to a router

Cisco documentation says: "You can specify an unlimited number of secondary addresses"

Not a usual thing to do though.

adding public ip to a router

hi mfurnival..

so it goes like this:

conf t

interface xxx
ip address x.x.x.a y.y.y.y

ip address x.x.x.b y.y.y.y secondary

ip address x.x.x.c y.y.y.y secondary

ip address x.x.x.d y.y.y.y secondary

ip address x.x.x.e y.y.y.y secondary

ip address x.x.x.f y.y.y.y secondary

.. and so on

am i right?

thanks

Silver

adding public ip to a router

Yep. But why are you doing this? I am curious

adding public ip to a router

i was just curiuos whether thisis possible

adding public ip to a router

everthing is possible but it depneds on you how u make it possible

Jawad

Jawad

adding public ip to a router

hello all,-

i tried adding a secondary ip add ress to an interface

SiteConcepts(config)#int gig

SiteConcepts(config)#int gigabitEthernet 0/1

SiteConcepts(config-if)#ip add 169.199.103.11 255.255.255.248 secondary

SiteConcepts(config-if)#end

SiteConcepts#

SiteConcepts#show i

*Aug 16 09:56:19.065: %SYS-5-CONFIG_I: Configured from console int br

Interface                  IP-Address      OK? Method Status                Protocol

Embedded-Service-Engine0/0 unassigned   own down   

GigabitEthernet0/0         169.199.102.238 YES NVRAM  up                    up     

GigabitEthernet0/1         169.199.103.9   YES NVRAM  up                    up  

how come i cannot see the secondary ip on the g0/1 interface??

also i want to delete the secondary ip that i created and change it to another.. but it cannot be deleted anymore.. i tried

SiteConcepts(config-if)# no ip add 169.199.103.11 255.255.255.248 secondary -- this doesnt emove the secondary ip

thanks

Silver

adding public ip to a router

"show ip interface brief" does not show the secondary address. Do "show ip interface"

To remove it you just need "no ip add 169.199.103.11 255.255.255.248" - the secondary keyword is not needed.

adding public ip to a router

in sh ip int brief

only your primary ip is shown

show run int gig 0/1

then c ip is remove or not...

Jawad

Jawad
401
Views
0
Helpful
12
Replies
CreatePlease login to create content