cancel
Showing results for 
Search instead for 
Did you mean: 

linux question

SOLVED
Go to solution
navin
Super Advisor

linux question

Hi One of my workstation needs to move location. It uses dhcp - in the new location also it is going to use dhcp - other than getting the dhcp drop what else needs to be done on the OS(SUse Linux 10) side.
Appreciate it
Learning ...
11 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: linux question

Shalom,

Just move it.

It will get a new DHCP lease at the new location if it is talking to a different DHCP server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
navin
Super Advisor

Re: linux question

thanks
Learning ...
Horia Chirculescu
Honored Contributor

Re: linux question

Hello, Navin.

The leases are stored at the server side, meaning the list with the allocated IP addresses are kept in the DHCP server.

If you move to another DHCP-enabled network, your workstation would issue a request to the new DHCP server that will allocate a new IP address.

Horia
Best regards from Romania,
Horia.
navin
Super Advisor

Re: linux question

hi ,

it seems the new ip is issued and from dns we are able to see this box tied to the new ip...

but when we do ping localhostname it is pinging 127.0.0 only and server is not in network....what needs to be done..on a linux box

if pc is hooked on this same network drop it picks up and in network..with out any issues.

pls advice
much appreciated
Learning ...
Viktor Balogh
Honored Contributor

Re: linux question

>but when we do ping localhostname it is pinging 127.0.0 only and server is not in network....what needs to be done..on a linux box

Did you try to ping its new IP? Do the other machines pinging from that new subnet? Maybe you're behind a firewall and icmp isn't allowed to pass trough.
****
Unix operates with beer.
J. Maestre
Honored Contributor

Re: linux question

>but when we do ping localhostname it is pinging 127.0.0 only

Names will always resolve on /etc/hosts first, and you'll have your local hostname there with a 127.0.x.x IP.

Is the interface properly configured? Do a ifconfig and verify that it actually has the expected IP.
navin
Super Advisor

Re: linux question

even if it is a dhcp ip ..should i configure IP manually ...how do i do it.

thanks
Learning ...
Viktor Balogh
Honored Contributor

Re: linux question

>should i configure IP manually ... how do i do it

In /etc/rc.config.d/netconf there is a section like this for every interface you have on your system:

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.168.1.1"
SUBNET_MASK[0]="0xffffff00"
BROADCAST_ADDRESS[0]="192.168.1.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

If you set the last line to 1, you don't need to set the settings above, just leave'em empty.
****
Unix operates with beer.
Patrick Wallek
Honored Contributor

Re: linux question

Viktor,

Your answer is fine for HP-UX, but this is SuSE Linux 10 and there is no /etc/rc.config.d directory.

Steven E. Protter
Exalted Contributor

Re: linux question

Shalom,

You can use ifconfig to manually set the ip address. Get it wrong and you will cut yourself off from the network.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Viktor Balogh
Honored Contributor

Re: linux question

@Patrick: ouch. that was hurt, you are right. next time more reading before any posting. :)

Navin, sorry for the confusion. ifconfig will do the job. Or if you want to set the IP permanently:

# /etc/sysconfig/network

In this directory there is a separate config file for each of your adapter, named based on the physical address of the interface.

ifcfg-eth-id-[MAC address]
****
Unix operates with beer.