PDA

View Full Version : Static IP issue on F14


GVenkat
29th April 2011, 02:41 PM
Hi

Our F14 server is looses access to the network once we set a static IP.
The same IP, if used on any other pc works fine.
We had the same exact setup in our F10 server also.

Anyone had similar problems? Any help is appreciated.
Thanks.

PatMcLJr
29th April 2011, 02:56 PM
Not that I know,
wired or wireless?
network or Network Manager?
firewall and SELinux?

is the server acting as a router or connecting to one?

Pat Jr.

GVenkat
29th April 2011, 03:01 PM

Its wired. Connected to a SMC router from comcast.
Originally we had NMControl=yes, but as per some suggestions on this forum changed it to no, but neither did help.
No firewall.

scott32746
29th April 2011, 03:26 PM
Hello,

Best/may want to change over to network.

setup ifcfg-ethX under /etc/sysconfig/network-scripts/


chkconfig NetworkManager off
chkconfig --level 35 network on

EXMPLE of ifcfg-ethX

DEVICE=ethX
BOOTPROTO=none
HWADDR=00:14:XX:XX:XX:B5
DNS1=192.168.1.XX
GATEWAY=192.168.1.XX
IPADDR=192.168.1.XX
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
NM_CONTROLLED=no
DNS2=8.8.8.8
PREFIX=24

service NetworkManager stop
service network start

GVenkat
29th April 2011, 04:15 PM
Tried that. NetworkManager has stopped.
But no success.

PatMcLJr
29th April 2011, 05:50 PM
is network running?

# service network status

# ifconfig

# dmesg | grep eth

maybe the MAC is banned on the router?

maybe you could use

# setup

to setup the network?

be sure to post back when you figure it out.
Pat Jr.

scott32746
29th April 2011, 06:48 PM
Hello,
You may have a hardware problem.
Have you checked and see if there are lights on your NIC ?
Could be a cable problem, port on router or NIC

hefeweizen
29th April 2011, 06:56 PM
The NetworkManager and network service are both convenience services for a basic ifconfig command. It's great to have these automatically set your network connection on boot, but they can obfuscate basic troubleshooting. With both of these stopped, use ifconfig to set the ip.

#ifconfig ethX <ip> <netmask>

Can you ping other hosts?
Can other hosts reach you?

If this doesn't work, you may have a firewall issue or a cabling issue.

If you've gotten this far, can you reach the internet by ip? Probably not.

route add default gw <gateway-ip>

If you can now reach other stuff on the internet via ip, can you do so by domain name?

/etc/resolv.conf: nameserver <ip>

these are the basic, step-wise components of what NetworkManager or network would do for you, but in doing it one step at a time you can see where the system is breaking.

GVenkat
29th April 2011, 06:59 PM
I cannot browse internet, once I change the NIC settings to Static IP.
If I leave it to dynamic IP everything is fine, I can browse the net.

Since we have a host name and a domain name associated with the static ip address, with which we want our developers to connect to the server, we want to setup the static IP.
So once I setup the static IP with Gateway, Subnet mask, DNS1&2, we loose the connectivity to internet.

scott32746
29th April 2011, 07:29 PM
When you use DHCP does it give the same IP setting as you are putting in ?

DHCP Example:
IP = 192.168.1.X
MASK = 255.255.255.0
GATEWAY = 192.168.1.X

And you are putting in some like
10.10.10.1
255.0.0.0

Just asking