08-16-2013 12:11 AM - edited 03-10-2019 12:23 PM
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
08-16-2013 12:19 AM
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.
08-16-2013 12:22 AM
hi driver..thanks..
is it possible to put 2 or more public ip address into the wan interface?
08-16-2013 12:36 AM
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.
08-16-2013 12:48 AM
hi,
do may i ask what is the maximum no. of public ip that can be added to an interface?
thanks
08-16-2013 01:08 AM
Cisco documentation says: "You can specify an unlimited number of secondary addresses"
Not a usual thing to do though.
08-16-2013 01:14 AM
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
08-16-2013 01:24 AM
Yep. But why are you doing this? I am curious
08-16-2013 01:26 AM
i was just curiuos whether thisis possible
08-16-2013 06:52 AM
everthing is possible but it depneds on you how u make it possible
Jawad
08-16-2013 07:40 AM
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
08-16-2013 07:48 AM
"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.
08-16-2013 07:48 AM
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
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: