LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-14-2005, 05:05 AM   #1
strangeslack
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
2NICs 2 IP's 1 network


Got a Dual 1GB NIC server running salckware 10.1
this is a replacement server for a couple of existing machines and as such I'd like it to keep both the existing IP's

i.e.
old Server 1 [192.168.1.10 ]
old server 2 [192.168.1.20 ]

becomes
newserver
: nic 1 [192.168.1.10] - done and working
: nic 2 [192.168.1.20] -


I'm using webmin to configre stuff though can hand edit anything that is needed

with one NIC enabled :- routing seems to work and I can get to the internet
:-
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default ipcop 0.0.0.0 UG 1 0 0 eth0

When I enable the 2nd NIC
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default ipcop 0.0.0.0 UG 1 0 0 eth0

then routing does not work and I cannot see the internet

how can I make both NIC's work and respond ?

as this will give me [theretically x2 bandwith to server also]
 
Old 02-14-2005, 07:44 AM   #2
strangeslack
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
OK -- have got things running

ifconfig eth1 192.168.2.10 netmask 255.255.255.0 broadcast 192.168.2.255 mtu 1500 up
route add -host 192.168.1.20 dev eth1
route del -net 192.168.1.0 netmask 255.255.255.0 dev eth1
route add -host 255.255.255.255 dev eth0

seems to do the trick and I can connect on either IP number now.

now to get the services running that I need.

error #1 - don't confuse your Broadcast number with your gateway

Last edited by strangeslack; 02-14-2005 at 07:58 AM.
 
  


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
find out ip's in your local network ody1 Linux - Networking 3 03-23-2005 12:02 PM
2 network cards--2 ip's--1 card has all load? edman007 Linux - Networking 11 11-30-2003 02:59 PM
Can I give one network card two ip's? bilgewater1 Linux - Networking 1 10-10-2003 01:31 AM
adding new IP's to Network card david_wliu Linux - Networking 1 03-18-2003 11:00 AM
Individual IP's on a network goatleg2 Linux - General 3 10-18-2002 09:44 PM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
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