 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

10th August 2012, 04:23 PM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 1,386

|
|
|
About set up static IP
Hi all,
How to set static IP address
$ ls /etc/sysconfig/network-scripts/
Code:
ifcfg-eth0 ifdown-ipv6 ifup ifup-isdn ifup-tunnel
ifcfg-eth1 ifdown-isdn ifup-aliases ifup-plip ifup-wireless
ifcfg-lo ifdown-post ifup-bnep ifup-plusb init.ipv6-global
ifdown ifdown-ppp ifup-eth ifup-post net.hotplug
ifdown-bnep ifdown-routes ifup-ippp ifup-ppp network-functions
ifdown-eth ifdown-sit ifup-ipv6 ifup-routes network-functions-ipv6
ifdown-ippp ifdown-tunnel ifup-ipx ifup-sit
Which file is similar to /etc/network/interfaces (on Debian/Ubuntu) and on it I can set static IP address? TIA
I have 2 NICs on this box. TIA
B.R.
satimis
|

10th August 2012, 05:47 PM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 4,976

|
|
|
Re: About set up static IP
The general advice is to use the system-config-network or system-config-network-tui tool to set up the network. Apparently (not really tested by me, but I'm going on info from the very knowledgeable stevea, who tends to be right about these things) there are now several files and possibly scripts (I say possibly because I don't remember his explanation that well) affected, which the system-config-network will take care of doing.
The main files are /etc/sysconfig/network-scripts/ifcfg-whatever, but you may have to edit them after using system-config-network as I think by default it will put don't start on boot and have networkmanager control them.
|

11th August 2012, 11:15 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 640

|
|
|
Re: About set up static IP
If you're using NetworkManager you can simply edit your connection in the NM gui and assign a static IP.
__________________
======
Doug G
======
|

11th August 2012, 12:04 PM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 1,386

|
|
|
Re: About set up static IP
Quote:
Originally Posted by Doug G
If you're using NetworkManager you can simply edit your connection in the NM gui and assign a static IP.
|
Hi,
I have NetworkManager installed. But it is command line operation without GUI.
$ yum search all gnome-network-manager
Code:
Loaded plugins: langpacks, presto, refresh-packagekit
Warning: No matches found for: gnome-network-manager
No Matches found
$ yum list gnome-network-manager
Code:
Loaded plugins: langpacks, presto, refresh-packagekit
Error: No matching Packages to list
satimis
|

11th August 2012, 12:09 PM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929

|
|
|
Re: About set up static IP
Right top of the screen. Click the network icon and select "Network Settings".
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

11th August 2012, 12:23 PM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 1,386

|
|
|
Re: About set up static IP
Quote:
Originally Posted by glennzo
Right top of the screen. Click the network icon and select "Network Settings".
|
Wired->
Code:
IP Address 192.168.0.10
Subnet Mask 255.255.255.0
Default Router 192.178.0.1
DNS 192.168.0.1
That is dynamic IP. Any Linux PC connected to this network without setting static IP will be assigned with this IP. The next IP assigned to another PC connected to this network will be 192.168.0.11
satimis
|

11th August 2012, 09:57 PM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300

|
|
|
Re: About set up static IP
No
You select 'edit' or whatever it's called and then YOU select 'no DHCP' and enter all the information, IP, Gateway, Route, and DNS servers. Then it will no longer be dynamic.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
|

12th August 2012, 10:43 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 1,386

|
|
|
Re: About set up static IP
Quote:
Originally Posted by stevea
No
You select 'edit' or whatever it's called and then YOU select 'no DHCP' and enter all the information, IP, Gateway, Route, and DNS servers. Then it will no longer be dynamic.
|
Hi,
I tried before;
right click 'network' -> Network Settings -> Options -> IPv4 Settings
etc.
After editing I was NOT allowed to save as 'user'. Neither I'm allowed to login as 'root'. I suppose I need to evoke it on terminal with sudo.
Finally I found;
Re: Static IP Configuration Doesn't Work
http://forums.fedoraforum.org/showthread.php?t=270732
Its suggestion is what I expect to find. After editing /etc/sysconfig/network-scripts/ifcfg-eth0 (in my case) as suggested and rebooting the PC, I got my problem solved.
$ /usr/sbin/NetworkManager restart
can't work. I have to reboot. I don't know why.
Thanks
B.R.
satimis
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 04:27 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|