cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
824
Views
0
Helpful
12
Replies

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 12

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 rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

hi driver..thanks..

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

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.

hi,

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

thanks

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

Not a usual thing to do though.

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

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

i was just curiuos whether thisis possible

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

Jawad

Jawad

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

"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.

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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: