1827810 Members
2148 Online
109969 Solutions
New Discussion

cannot add IP address

 
SOLVED
Go to solution
Sandy Chen
Honored Contributor

cannot add IP address

Hi all,

I wanted to add IP address on my system
existing is 192.168.125.7, 255.255.255.0

default gateway is 192.168.125.1

I wanted to add 10.10.10.7, 255.0.0.0

The addition is on different NIC
everytime I add the second IP all network is not accessible from everywhere but if I changed the subnet of the NEW IP to class C it works just fine

any idea??

regards,
Chen
I never think of the future. It comes soon enough.
6 REPLIES 6
Arunvijai_4
Honored Contributor

Re: cannot add IP address

Hi Chen,

This could be a routing problem since you added another IP to your host(NIC). What is your /etc/resolv.conf ? and /etc/nsswitch.conf ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: cannot add IP address

Hi,

After adding another IP and different subnet are you defining any gateway between the two networks configured on the same host or the routing part taken care by something else?

Is your original IP also not available or only new one? If only new one is not available I would doubt the subnet of other devices in your network. It should be matching with the one you are setting on for the devices to communicate.

HTH,
Devender
Impossible itself mentions "I m possible"
Sandy Chen
Honored Contributor

Re: cannot add IP address

Hi,

After adding the second IP with subnet class A, all IP is not accessible, including the first IP.

For the second IP actually I don't have any gateway cause I meant it to connect only to a few servers through a dedicated switch.

regards,
Chen
I never think of the future. It comes soon enough.
Ivan Ferreira
Honored Contributor

Re: cannot add IP address

After you add the IP to the second nic, can you please post the output of:

netstat -nr
netstat -ni

You can post the results in the two situations, when you use Class A mask and Class C mask.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
rmueller58
Valued Contributor

Re: cannot add IP address

You will need to define the gateway address on the secondary IP as well, It will require a secondary address on the router that is acting as the gateway.

Routing 10.xxx numbers can be handled without a statically mapped gateway on the server but defining a supernet on the routers..

Contact your Router guy, or check with your vendor.
10.xxx numbers are private numbers and cannot be broadcast, to the "I"nternet. You will need a NAT (network address translation) address as well defined on the router if you wish the 10.xxx address to see the outside world.

Indrajit_1
Valued Contributor
Solution

Re: cannot add IP address

Hi;

It is because of default gateway. u no need to make any changes in ur hp unix box. u just need to enter one more route in ur router (cisco , etc). if cisco router, u need to made an entry ..

#config t
#router rip
#network 10.0.0.0
Ctrl Z
#copy run start

Now machine will accessible from other network.

Hope this will help u to resolve ur issue

cheers
indrajit
Never Ever Give Up