Operating System - Linux
1828720 Members
2359 Online
109984 Solutions
New Discussion

configuring ip address on DL380G5

 
khilari
Regular Advisor

configuring ip address on DL380G5

Hi guys, i wanted to ask u as to how would u configure the ip address of a dl380 server?
Thanks
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: configuring ip address on DL380G5

Depends on what distribution is in use on the system.

RH and SLES tend to use '/etc/sysconfig/network-scripts/ifcfg-' files (with an IPADDR line). There also should be the command 'netconfig' which is to manipulate those files.

I'm unsure about Debian, as it's been a while.

But underneath it all, all the interfaces do is provide a front end to the 'ifconfig' command.

ifconfig
One long-haired git at your service...
George Liu_4
Trusted Contributor

Re: configuring ip address on DL380G5

For debian,

/etc/network/interface
khilari
Regular Advisor

Re: configuring ip address on DL380G5

Well, i was in the /etc/sysconfig/network-scripts/ifcfg-lo file and i put in the ip address. Then i put in the netmask. But what should i put in the following fields
*)Network, Name and browadcast fields?

In the /etc/hosts file i just put in the ipaddress and the hostname

In the /etc/sysconfig/network i put in
hostname and when i did the /sbin/service network restart and did ifconfig -a it did pick the ip?
Now, how do i check how many network interfaces are there in a system?

Thanks
Stuart Browne
Honored Contributor

Re: configuring ip address on DL380G5

Start by going back and undoing the changes you've made.

The 'lo' interface (loop-back) isn't supposed to have a real address attached to it, only '127.0.0.1'.

There will be an 'ifcfg-eth0' file in there, that's your network interface.

As for working out the rest of the values, the command 'ipcalc' is your friend.

To see what interfaces are there, use 'ifconfig -a'.
One long-haired git at your service...