Re: How do I fix IP address in RH9?

From: Michael Thomas (mtNOSPAMMING_at_armory.com)
Date: 07/08/05


Date: Thu, 07 Jul 2005 17:40:53 -0700


 Angus Comber wrote:
> Hello
>
> Is ifconfig command to use? Looked at man page but didn't see how to set
> eg subnet mask, gateway, etc using this command.
>
> Angus

If you're running a gui then type 'neat' to bring up the network
utility. If running command line, then type 'setup' and select
network configuration.

Or...

Just edit the files necessary to change them. The files are
/etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-ethx
(where 'x' is the device #)

 
[mthomas@reagan sysconfig]$ pwd
/etc/sysconfig
[mthomas@reagan sysconfig]$ cat network
NETWORKING=yes
HOSTNAME=reagan.foo.bar.com
GATEWAY=192.30.51.1

and ...

[mthomas@reagan network-scripts]$ pwd
/etc/sysconfig/network-scripts
[mthomas@reagan network-scripts]$ cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=xx:xx:xx:xx:xx:xx
IPADDR=192.30.51.72
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet

MT



Relevant Pages

  • Re: Dial-up clients drop connections
    ... Both products physically synchronize with the respondent modem, authenticate, attempt to "talk to the network", then drop the connection. ... Extreme cases may warrant the removal of the TCP/IP protocol..With the NetShell utility, you can reset the TCP/IP stack to restore it to its state that existed when the operating system was installed. ... When you run the reset command, it rewrites pertinent registry keys that are used by the Internet Protocol stack to reach the same result as the removal and the reinstallation of the protocol. ...
    (microsoft.public.windowsxp.general)
  • Re: networking problem
    ... > Static IP address configuration in Windows XPe environment HOWTO ... > To be able to be pingable with one ethernet card in your target machine, ... > Network Command Shell ... > Command Shell Interface Context ...
    (microsoft.public.windowsxp.embedded)
  • RE: Network Not Working in Linux ; Works in Windows Why ?
    ... Have you enabled the NIC cards and/or do you have the correct drivers loaded ... Network Not Working in Linux; ... I am giving the outputs of the following command for assitance. ...
    (RedHat)
  • internet ip to local ip with pix
    ... pix inside 10.112.2.241 ... Is 10.2.2.2 inside or outside the network? ... You would need a 'static' command, and you would need a 'route' ... to the outside interface by using the access-group command. ...
    (comp.dcom.sys.cisco)
  • Re: trace ip
    ... will hack your through a network they hacked into from another network... ... >Ascend digital modem box, his last attack I logged he ... >authentication and is being logged into our RAD logs. ... It is all command ...
    (microsoft.public.security)