LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2013, 02:33 AM   #1
somnathndy
Member
 
Registered: May 2013
Posts: 30

Rep: Reputation: Disabled
how to put two different subnets on 2 ethernet cards


Hi,
I am having 2 ethernet cards on my server and I have to put 2 different ip addresses on these - 192.168.100.30 (eth0) and 192.168.200.15 (eth1). Problem is at any point of time 192.168.100.30 is working well but 192.168.200.15 is not working - if I disable eth0 then eth1 is working well. Internal firewall is disabled. I want to run eth0 and eth1 simulteniously. eth0 is connected to one switch and eth1 I want to connect to another for different group.
 
Old 05-07-2013, 03:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
can you define what "working" means here? What is the output of "ifconfig -a" and "route -n" when you have them both enabled?
 
Old 05-07-2013, 10:14 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by somnathndy View Post
Hi,
I am having 2 ethernet cards on my server and I have to put 2 different ip addresses on these - 192.168.100.30 (eth0) and 192.168.200.15 (eth1). Problem is at any point of time 192.168.100.30 is working well but 192.168.200.15 is not working - if I disable eth0 then eth1 is working well. Internal firewall is disabled. I want to run eth0 and eth1 simulteniously. eth0 is connected to one switch and eth1 I want to connect to another for different group.
Your problem is that the two devices are supposed to be separate networks. What defines the network is the netmask. By default 192.168.x is a class C network, thus it should have a netmask of 255.255.255.0. This would define the 192.168.200.x network as distinguished from the 192.168.100.x network.

You likely have a netmask of 255.255.0.0 which puts all of 192.168.x on one network.

You can look at your netmask simply by doing "ifconfig -a", then check each network for the mask you are using.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ethernet Cards manjunathgn Linux - Newbie 1 02-25-2010 03:41 AM
2 ethernet cards.. Nyybai Slackware 8 04-12-2004 12:49 PM
two ethernet cards Canadian_2k2 Linux - Networking 4 12-07-2003 11:58 PM
Old ethernet cards rsbecker007 Linux - Networking 1 07-31-2002 11:21 PM
Ethernet Cards and Sound Cards SchizoIV Linux - Newbie 2 07-05-2002 10:10 PM


All times are GMT -5. The time now is 11:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration