LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2011, 09:57 AM   #1
babbutycoonq
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
Networking help (connectivity between two lan cards on the same system)


Hello guys , please take a look at the attachment and can anyone please tell how to get internet connectivity to both system A and system B.
FYI: SYS1 has two lan cards. eth 0 connected to the router and eth1 connected to an eight port gigabit switch. Basically i need to isolate the traffic of the 48port switch to both system A and system B.

FYI ALL systems have the same hardware and software config as mentioned below

Operating sys : centos 5.6 x86_64
Processor : amd X6 phenom II
Storage : 2TB HDD
RAM : 16GB
motherboard : gigabyte us2h....something

please i need this to be setup in my office ASAFP.
Thanks
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	20
Size:	27.1 KB
ID:	7630  
 
Old 07-21-2011, 12:54 PM   #2
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
I don't have a suitable machine to verify, and I'm a bit rusty, so the following may not be exactly correct, but this should not be difficult at all.

On SYS1, make sure you have bridge-utils installed, then add a bridge between eth0 and eth1. If I remember correctly, you only need to add
Code:
BRIDGE=br0
to both /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth1, and create /etc/sysconfig/network-scripts/ifcfg-br0 containing
Code:
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=none
STP=yes
and run service network restart to reload all network settings. The network service will do all the magic with brctl et al. when the network is brought up.

But like I said, I'm unable to check this right now, so the above might not work without modifications. (Specifically, I cannot remember on which layer the bridge should work -- i.e. whether the IP addresses can be on the interfaces, or if they need to be assigned to the bridge instead. And it might need some extra routes using 'via' in the above files.)
 
Old 07-29-2011, 06:08 AM   #3
babbutycoonq
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
No Luck

Well i want the network connected to eth1 on a different subnet, and also need that network to be able to access the internet. I googled a lot... even tried setting up dns bind and dhcp. Dhcp works fine but no net connectivity. Since only eth0 is connected to my router what do i have to do get the internet working for the eth1 network, do i have to create a route or a bridge. Creating a bridge does not let me create a different subnet. Please help need to setup the servers ASAP.
 
Old 08-16-2011, 01:14 PM   #4
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Enable IP forwarding on SYS1:
sysctl -w net.ipv4.ip_forward=1
and edit /etc/stsctl.conf to make it permanent.

Add route to 192.168.2.0/24 via 192.168.2.0 on ROUTER:
ip -4 route add 192.168.2.0/24 via 192.168.2.0
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN Connectivity but not WAN Connection on Old Thinkpad metroside Linux - Networking 7 04-27-2008 09:42 PM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
LAN Connectivity issues withotnot Linux - Networking 5 10-08-2003 12:57 PM
mandrake 9.0 networking, routing, 2 lan cards.. need help plz acidburn Linux - Networking 1 08-15-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration