Operating System - Linux
1832973 Members
2178 Online
110048 Solutions
New Discussion

Re: network issues with linux

 
Rudy Hadsell
Occasional Advisor

network issues with linux

i have a dl385 g5 out of the box, installed rhel manually, told i did not need the smartstart cd.

when i try to connect to the network or do a ping, it tells me the network is unreachable.

have a static ip of 192.168.1.239. gw of 192.168.1.99. network is working, cable is good and syncs with cisco switch.

i read where is is how the kernal enumerates the nic device, but it did not tell me how to fix the issue.

help please!!

6 REPLIES 6
Michal Kapalka (mikap)
Honored Contributor

Re: network issues with linux

hi,

probably you have 2 nic on board and you configured a NIC that isn't connected to the switch.

mikap
Rudy Hadsell
Occasional Advisor

Re: network issues with linux

i have the correct nic connected. unless i am seeing this wrong. the back of the server has nic's for 1,2,3,4 the os shows eth0,1,2,3. i am using eth0 and have my cable connected into the first eth port on the back.

thanks.

--rudy
Michal Kapalka (mikap)
Honored Contributor

Re: network issues with linux

hi,

ok could you please send a network configuration ???

content of ifcfg-eth0

ifconfig eth0

netstat -nr


mikap

Rudy Hadsell
Occasional Advisor

Re: network issues with linux

ok, i may be on to something...

when i look at my system settings in the cmos, it shows me the mac addresses of the interfaces.

when i compare these macs to the eth0,1,2,3 they are switched aroung.

nic1 in cmos mac is actually eth3 in centos 5.3

so, how do i get centos to match these up?

i am hopeful this takes care of the issue, with your help. thanks...

--rudy
Michal Kapalka (mikap)
Honored Contributor

Re: network issues with linux

hi,



for i in 1 2 3; do ifconfig eth$i down; done

put it to the shell or


simple ifconfig ethx down ( x=1 2 3 )

if you are shure that the eth0 is connected with the switch them

IP : 192.168.1.239

netmask : ???

gw : 192.168.1.99

#----------------------------------------
ifconfig eth0 down

ifconfig eth0 IP netmask up

route add default gw IP_GW

them try tu ping if the netwrok is working.

mikap

Rudy Hadsell
Occasional Advisor

Re: network issues with linux

ok, i can now connect,

i went into the network config and mapped the nic mac address to match the interface,

rebooted the system and i can now gain access.

thank you for all your help..

--rudy