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

16th December 2008, 05:08 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473

|
|
|
Double check my settings please?
I have a server set up at home, and lately it seems like the router will reassign IPs to the machines at home, thus messing up my port forwarding.
My router is a Linksys WRT54GL (standard firmware) which doesn't have an option, or one that I've found, to port forward based on MAC address, rather than network IP. I want to manually set my ifcfg-eth0 file to give it a certain IP outside the range that the router will give so that I can always be sure that it's forwarding to the right machine.
Is this setup correct?
Code:
DEVICE=eth0
HWADDR=00-1D-09-85-34-D7
IPADDR=192.168.10.99
NETMASK=255.255.255.0
BROADCAST=192.168.10.255
NETWORK=192.168.10.0
GATEWAY=192.168.10.1
ONBOOT=yes
BOOTPROTO=none
Or is there something I'm missing/mixing up?
__________________
Registered linux user: #475337
Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
|

16th December 2008, 05:54 PM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224

|
|
I'm not sure, but I think that may be overwritten by NetworkManager. Try running system-config-network (or "Network" from the Administration menu) and edit the eth0 interface. You'll see an option to disable NetworkManager on that connection, and you'll also be able to configure your IP and DNS settings. Once that's done and saved, disable NetworkManager and enable the old-style "network" service for static IP:
Code:
su -
service NetworkManager stop
chkconfig NetworkManager off
chkconfig network on
service network start
Firewing1
|

16th December 2008, 06:15 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473

|
|
|
I believe NetworkManager is already disabled. And I should have mentioned this is a headless server, no GUI/monitor/input. It's just plugged in for power and networking, nothing else. Should I be able to run system-config-network still and get the old "DOS" looking (I'm sure it's called something else) setup?
__________________
Registered linux user: #475337
Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
|

16th December 2008, 08:06 PM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224

|
|
Oh, I see.... Well in any case, this is my ifcfg-eth0 file on my home server (static IP as well):
Code:
# Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:e6:8c:11:ee
IPV6ADDR=192.168.1.13/24
IPV6INIT=yes
IPV6_AUTOCONF=no
ONBOOT=yes
NM_CONTROLLED=no
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPADDR=192.168.1.13
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
Firewing1
|

16th December 2008, 08:17 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473

|
|
|
Thanks, I'll tinker with it tonight.
__________________
Registered linux user: #475337
Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
|

16th December 2008, 11:43 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473

|
|
|
So it worked when I set it in ifcfg-eth0, but on my router it still reports the old IP. Does a Linksys WRT54GL cache the IPs of who is connected?
__________________
Registered linux user: #475337
Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
|

17th December 2008, 03:30 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473

|
|
|
I set it to something outside the range of what I set my router to use when it assigns an IP, I can SSH to it, and browse through the web to it, but yum is no longer working because it can't resolve any domain. I tried to ping google.com and got a response of unknown host.
__________________
Registered linux user: #475337
Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
|

17th December 2008, 03:49 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473

|
|
|
Sorry, forgot to set the DNS settings. Got it working now.
__________________
Registered linux user: #475337
Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
|
| 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: 13:55 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|