Help - Search - Members - Calendar
Full Version: how do i view/edit ip settings manually
linux-noob.com/forums > Linux Noob > Network Problems
anyweb
to view or edit your ip settings manually for eth0 or eth1 (your network cards)

go here

vi /etc/sysconfig/network-scripts/ifcfg-ethx

where x= the number of your network card

for example

vi /etc/sysconfig/network-scripts/ifcfg-eth1

will show you the config file for eth1

here is a sample one below for my wireless card



CODE
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=no
PEERDNS=yes
GATEWAY=100.0.0.1
TYPE=Wireless
DEVICE=eth1
HWADDR=00:02:2d:46:b2:5f
BOOTPROTO=none
NETMASK=255.255.0.0
ONBOOT=yes
DHCP_HOSTNAME=
IPADDR=100.0.0.123
NAME=
DOMAIN=
ESSID=wirelinux
CHANNEL=11
MODE=Ad-Hoc
RATE=11Mb/s
grep420
also note that these changes only take effect if the network service is restarted or the interface is cycled. i.e. service network restart
rSmEt
What's the terminal command for fedora 3 (2.6.x) kernel?

All I can find is the ifconfig eth0 down/up but that doesn't work in fedora apparently.
anyweb
you said

QUOTE
All I can find is the ifconfig eth0 down/up but that doesn't work in fedora apparently.


are you doing this correctly ?

if you are getting a command not found error then you need to login as root correctly
and that is done by typing su -

CODE
su -


more info about the su and the - (dash) right here on linux-noob.com

read this http://www.linux-noob.com/forums/index.php?showtopic=549

once done, try

CODE
ifup eth0


cheers

anyweb
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.