Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do i view/edit ip settings manually
#1

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




Reply
#2
also note that these changes only take effect if the network service is restarted or the interface is cycled. i.e. service network restart
Reply
#3

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.

Reply
#4

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 [/url][url=<___base_url___>/index.php?showtopic=549][/url][url=<___base_url___>/index.php?showtopic=549]https://www.linux-noob.com/forums/index.php?showtopic=549

 

once done, try

 



Code:
ifup eth0




 

cheers

 

anyweb

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)