LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-11-2004, 01:03 AM   #1
wrexy
LQ Newbie
 
Registered: Sep 2004
Location: australia
Distribution: debian
Posts: 5

Rep: Reputation: 0
2 nics on the same subnet mask


I have a FC1 server set up with 2 identical 3 com 100M nic.

I want to set up 2 nics in order to assign 2 different services to each nic.

eth0 192.168.1.143 - PBX
eth1 1921.68.1.142 - Terminal Service and others.

ifconfig eth0 192.168.1.143 netmask 255.255.255.0 up
ifconfig eth0 192.168.1.142 netmask 255.255.255.0 up
route add default gw 192.168.1.1

I can specify asterisk to listen on ip address 143. However, when I look up the routing table on my gateway. Both ip addresses are share the same mac address. In other word, arp treated the ip addresses as the nic card although in reality they are not.

Is it possible to run 2 nic on the same subnet mask? And does my idea work at all?

since all the network traffic is in fact going though the same nic I have problem using my ip phone.

David Kwok
 
Old 10-11-2004, 01:20 AM   #2
ToeShot
Member
 
Registered: Nov 2001
Location: Near Chicago
Distribution: FC5, Solaris 10, WinXP
Posts: 152

Rep: Reputation: 30
I just had this same problem in windows. It bridge both of my nics to the same mac address. all I di in windows was unistall mac bridging. Now grant it Linux is not windows bu I would suspect your problem lies along that path. I have 2 nics in my linux box and they come up wit seperate MAC addresses

Sorry I can't be more help
 
Old 10-11-2004, 01:24 AM   #3
ToeShot
Member
 
Registered: Nov 2001
Location: Near Chicago
Distribution: FC5, Solaris 10, WinXP
Posts: 152

Rep: Reputation: 30
Ignore my previous post if this is not a typo below

ifconfig eth0 192.168.1.143 netmask 255.255.255.0 up
ifconfig eth0 192.168.1.142 netmask 255.255.255.0 up

you have both address to the same interface
 
Old 10-11-2004, 01:33 AM   #4
wrexy
LQ Newbie
 
Registered: Sep 2004
Location: australia
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
2 nics

Sorry, typo

ifconfig eth0 192.168.1.143
ifconfig eth1 192.168.1.142

David

Last edited by wrexy; 10-11-2004 at 01:35 AM.
 
Old 10-11-2004, 03:20 AM   #5
rabeea
Member
 
Registered: Aug 2004
Location: Pakistan
Posts: 52

Rep: Reputation: 15
hi
try uninstalling eth1 and then install it again.Assign a seperate ip of a seperate network and then find out whether it takes the same mac or not. Then if it doesnt ,change the ips to ur desired network.May be this could help.
 
Old 10-11-2004, 04:18 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You can't put two NICs on the same subnet unless you use Interface Bonding (which requires third party patches). There's really no reason to do this since it's highly unlikely that you'll max out 100Mb/s of bandwidth. The best thing to do is make sure you're using high-quality NICs (such as Intel) that can handle the load and won't choke your CPU (i.e. not Realtek).
 
Old 10-11-2004, 06:33 PM   #7
wrexy
LQ Newbie
 
Registered: Sep 2004
Location: australia
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
Point taken.

However, I have experienced call quality issue when the asterisk is running with the terminal service on 1 server.

May I need to put wondershaper to give precedence to voip traffic.
 
  


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
Subnet Mask with 1 IP. Ionized Linux - Networking 25 06-10-2007 01:20 AM
subnet mask kizersouzay Linux - Networking 1 08-31-2005 04:07 PM
All network/broadcast pairs for subnet mask? debbo Linux - Networking 1 06-14-2004 05:27 PM
Remote Subnet Mask? - help! MikHud Linux - Networking 2 01-14-2003 06:21 AM
Subnet mask mikeshn Linux - Networking 1 08-26-2002 02:19 PM


All times are GMT -5. The time now is 09:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration