Fedora Linux Support Community & Resources Center
  #1  
Old 12th March 2007, 10:46 PM
clarkus978 Offline
Registered User
 
Join Date: Jul 2004
Location: Houston,TX
Age: 30
Posts: 21
FC6 Networking problems

I posted this same problem in a different thread...but I thought I would start a new thread. I've got two NIC cards with static IP's (which I know they are configured correctly, because they have the same IP settings I used when I was running FC3) but now I don't have internet and the bridge I've created between my server and workstation don't talk. I can't even ping my FC6 servers NIC. I shut off SELinux because I read in a different thread its necessary if you want vsftp to be running correctly. The computer is running very slow and the internet is slow. I'm running an AMD Athlon 1.1Ghz with 512MB RAM. Both NIC cards are Netgear 10/100. Please help! Thanks
Reply With Quote
  #2  
Old 12th March 2007, 11:39 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
So you are saying one nic is connected to the internet and the other is used on the lan side. Then network masquerading is used to allow lan side nic machines to connect to the internet.
Is this correct?

As far as slow it could be a number of things. If one nic is removed then is the performance fine?
If so then it could be a bugging module for the nic. I have seen this happen when using the same brand and model of nics. Usually it this is resolved on the next kernel release if caught.

Antother thought is if use the NetworkManager service then this could cause havoc on a system if two nics are setup incorrect.

Post contents of /etc/sysconfig/network-scripts ifcfg-eth0 and ifcfg-eth1.

Before going further lets make sure the first part of this post is what you are setting up.
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 13th March 2007, 02:50 PM
clarkus978 Offline
Registered User
 
Join Date: Jul 2004
Location: Houston,TX
Age: 30
Posts: 21
Ok, Ok...so I believe my server is fast. Some programs are just slow because I have yet to install the nvidia drivers. So that's another issue...

My internet is just slow and it seems to take forever for FF to load. Here are the details from my ifcfg-eth0 and ifcfg-eth1:

# ADMtek NC100 Network Everywhere Fast Ethernet 10/100
DEVICE=eth0
BOOTPROTO=none
BROADCAST=<xx.xx.xxx.x> External IP
HWADDR=00:04:5a:4c:ae:08
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

# Lite-On Communications Inc LNE100TX
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:a0:cc:5a:46:09
ONBOOT=yes
DHCP_HOSTNAME=holla.homeip.net
IPADDR=192.168.1.1
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
Reply With Quote
  #4  
Old 14th March 2007, 12:09 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
First thing I see is rem out the line for the gateway for eth1 nic. It can't route that way from the file itself. Leave out the gateway itself and let ipmasquerading handle the routing for itself.

Bring both nics down and flush the iptables. Briang up nic one first and test internet. If good then bring up the second nic and test internet again. If all is good then enable ip_forwad and iptables masquerading commands and check internet one more time. If good then goto the lan machine and test it.

Bring nics down as root.
/sbin/ifdown eth0
/sbin/ifdown eth1

Bring nics up.
/sbin/ifup eth0
/sbin/ifup eth1

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 14th March 2007, 03:10 AM
Iron_Mike's Avatar
Iron_Mike Offline
Registered User
 
Join Date: Jul 2005
Location: Ft Huachuca, AZ
Posts: 3,762
Looks like you have a routing problem. You have 2 different "private" networks, 192.168.0.1 and 192.168.1.1 correct.??? And you want to route all traffic from the 1.1 to 0.1 network. So you need to route all traffic from eth1 to eth0:

Open a terminal window and switch to root (su -) and type:

route add -net 192.168.1.1 netmask 255.255.255.0 dev eth0
route add -net 192.168.0.1 netmask 255.255.255.0 dev eth1

Your telling IP address 1.1 to route all traffic through eth0 which is your 0.1 ip address this is for the box with the 2 nics. Now for your workstation, setup your ip to 192.168.1.xxx and gateway to 192.168.1.1, primary DNS to 192.168.1.1 and secondary dns to one of your isp or other available dns servers....

Last edited by Iron_Mike; 14th March 2007 at 03:22 AM.
Reply With Quote
  #6  
Old 14th March 2007, 03:58 AM
clarkus978 Offline
Registered User
 
Join Date: Jul 2004
Location: Houston,TX
Age: 30
Posts: 21
Quote:
Originally Posted by Iron_Mike
Looks like you have a routing problem. You have 2 different "private" networks, 192.168.0.1 and 192.168.1.1 correct.??? And you want to route all traffic from the 1.1 to 0.1 network. So you need to route all traffic from eth1 to eth0:

Open a terminal window and switch to root (su -) and type:

route add -net 192.168.1.1 netmask 255.255.255.0 dev eth0
route add -net 192.168.0.1 netmask 255.255.255.0 dev eth1

Your telling IP address 1.1 to route all traffic through eth0 which is your 0.1 ip address this is for the box with the 2 nics. Now for your workstation, setup your ip to 192.168.1.xxx and gateway to 192.168.1.1, primary DNS to 192.168.1.1 and secondary dns to one of your isp or other available dns servers....
Ah yes, makes sense. I remember doing this 3 years ago. It's just been so long since I've set this stuff up. I'm sure that will do the trick. Thanks!
Reply With Quote
  #7  
Old 14th March 2007, 06:32 AM
clarkus978 Offline
Registered User
 
Join Date: Jul 2004
Location: Houston,TX
Age: 30
Posts: 21
Quote:
Originally Posted by Brian1
First thing I see is rem out the line for the gateway for eth1 nic. It can't route that way from the file itself. Leave out the gateway itself and let ipmasquerading handle the routing for itself.

Bring both nics down and flush the iptables. Briang up nic one first and test internet. If good then bring up the second nic and test internet again. If all is good then enable ip_forwad and iptables masquerading commands and check internet one more time. If good then goto the lan machine and test it.

Bring nics down as root.
/sbin/ifdown eth0
/sbin/ifdown eth1

Bring nics up.
/sbin/ifup eth0
/sbin/ifup eth1

Brian
I flushed the iptables and brought up eth0, the first NIC, and I'm still unable to get to the internet. I know my netgear router is setup properly...because I'm using the wireless off from it on my laptop. Is there another step to this? I also tried Iron_Mike's commands and FC6 didn't like it. It came back with "route: netmask doesn't match route address."
Reply With Quote
  #8  
Old 14th March 2007, 12:03 PM
Iron_Mike's Avatar
Iron_Mike Offline
Registered User
 
Join Date: Jul 2005
Location: Ft Huachuca, AZ
Posts: 3,762
Open a terminal window and change to root (su -) type:

route

and post the results here.....
Reply With Quote
  #9  
Old 15th March 2007, 02:28 AM
clarkus978 Offline
Registered User
 
Join Date: Jul 2004
Location: Houston,TX
Age: 30
Posts: 21
My internet works now! I found out that when I upgraded to FC6 it changed the names of my NIC cards. Eth0 is now Eth1 ...so I just swapped the cables. I'm still unable to connect to the internet through my workstation. I know I need to enable the port forwarding, but I don't know the commands to do so. Anyways, here's what displays after typing route:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Reply With Quote
  #10  
Old 15th March 2007, 09:01 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Glad to see you got it going. For the swap of nic labels I guess maybe the kernel change the way IRQ is determined. There are a few ways in the kernel IRQ polling can be done.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
fc6, networking, problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
networking problems with kvm aussie_1968 Servers & Networking 0 2nd June 2009 02:33 PM
Weird Networking Problems 40esp Servers & Networking 10 20th April 2009 08:44 PM
Networking problems xolim Servers & Networking 1 30th November 2007 03:06 PM


Current GMT-time: 12:46 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat