Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Static IP and Fedora 10


  • Please log in to reply
5 replies to this topic

#1 KamakaZ

KamakaZ

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:07:03 PM

Posted 16 December 2008 - 05:18 PM

I have installed Fedora 10, went to give it a static IP, found it didn't work. It deleted my DNS that i put in and made the subnet the gateway address.

I followed a few of the fixes such as:

- Turning Network Manager off
- Making sure Network is enabled
- Manually editing the ifcfg-eth0 file

Still when i boot up i have no internet unless i change it back to DHCP.

Is there any other fixes for this?

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


BC AdBot (Login to Remove)

 


#2 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:03:03 AM

Posted 16 December 2008 - 08:22 PM

First let me say I have no knowledge of the Fedora
pointy/clicky tools for the network.
You will need to edit two files, either from the
command line or an editor.
/etc/network/interface
# An example static IP setup: (broadcast and gateway are optional)
	 #
	 auto eth0
	 iface eth0 inet static
		  address 192.168.0.42
		  network 192.168.0.0
		  netmask 255.255.255.0
		  broadcast 192.168.0.255
		  gateway 192.168.0.1

/etc/resolv.conf
nameserver 208.67.220.220
nameserver 208.67.222.222

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#3 KamakaZ

KamakaZ
  • Topic Starter

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:07:03 PM

Posted 16 December 2008 - 10:37 PM

I did install the GNOME GUI but have found for the most part i use the terminal anyway... I use vi to edit the files. Someone has told me there are three other files i have to edit as well as the two you mentioned

They are:

/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0

What do you think?

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


#4 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:03:03 AM

Posted 17 December 2008 - 10:44 PM

I have seen this on RedHat.
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=*ipaddress*
NETMASK=255.255.255.0
GATEWAY=*gateway*
I don't think you need to edit the other two.

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#5 KamakaZ

KamakaZ
  • Topic Starter

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:07:03 PM

Posted 18 December 2008 - 04:13 AM

what about USERCTL= yes/no?

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


#6 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:03:03 AM

Posted 18 December 2008 - 08:43 PM

Default is "no" unless you have users that need to control
the network card.

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users