Jump to content

how do i view/edit ip settings manually


Recommended Posts

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

 

 

 

# 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

  • Like 1
Link to post
Share on other sites

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

Link to post
Share on other sites
  • 1 year later...

you said

 

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 -

 

su -

 

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

 

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

 

once done, try

 

ifup eth0

 

cheers

 

anyweb

Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...