Setup 2 NIC cards in one UNIX system


 
Thread Tools Search this Thread
Special Forums IP Networking Setup 2 NIC cards in one UNIX system
# 1  
Old 06-29-2006
Setup 2 NIC cards in one UNIX system

Hi;

I have a UNIX box (SCO 5.0.2) with two (2) NIC cards. One card (NIC1) talks to a network 57.14.65.x/27. The other card NIC2) talks to users on 57.14.103.x and 57.14.105.x with subnet mask of 255.255.0.0. If I set NIC2 to this subnet mask (255.255.0.0) it seems like the NIC traffic is now going to this one so we changed the NIC2 subnet mask to 255.255.0.0 which now works with 57.14.103.x and 57.14.105.x but I loose the 57.14.65. If I change the subnet mask to 255.255.255.0, everything work but I loose communication with the users at 57.14.105.x.

NIC1: IP Address: 57.14.65.166 subnet mask: 255.255.255.224
NIC2: IP Address: 57.14.103.220 subnet mask: 255.255.0.0

We know that NIC1 settings work OK so we don't want to mess around NIC1. We replaced NIC2 and now the system is having this problem. Any suggestions are welcomed.

Thank you
# 2  
Old 06-29-2006
The netmask is quite literally that, a mask.

If you configure with 255.255.0.0 and 255.255.255.224 as netmasks on the networks you mentioned, you are defining one as overlapping the other, so the system behaves as you have already seen, 255.255.0.0 means the every machine with an address starting with 57.14 is on this subnet, all 67840 of them.

You need to know the correct size for the netmask on that subnet, it's probably something like 255.255.252.0 that you're looking for, but you really need to find out from your networking people what size the subnet is.
# 3  
Old 07-01-2006
Yes, reborg is right, there is no meaning of having a network ID of 57.14.103.x with a subnet mask of 255.255.0.0 since it'll match every thing after 57.14.x.x, here is proof for this:
Code:
Address:   57.14.103.0           00111001.00001110 .01100111.00000000
Netmask:   255.255.0.0 = 16      11111111.11111111 .00000000.00000000
Wildcard:  0.0.255.255           00000000.00000000 .11111111.11111111  
=>
Network:   57.14.0.0/16          00111001.00001110 .00000000.00000000
Broadcast: 57.14.255.255         00111001.00001110 .11111111.11111111
HostMin:   57.14.0.1             00111001.00001110 .00000000.00000001
HostMax:   57.14.255.254         00111001.00001110 .11111111.11111110
Hosts/Net: 65534

Since you are trying to connect two networks with one IP address, its not possible with a subnet mask of 24, you can go for a 20 bit subnet mask e.g. 57.17.96.x subnetmask 255.255.240.0 and here is the data:
Code:
Network:   57.14.96.0/20         00111001.00001110.0110 0000.00000000 
Broadcast: 57.14.111.255         00111001.00001110.0110 1111.11111111
HostMin:   57.14.96.1            00111001.00001110.0110 0000.00000001
HostMax:   57.14.111.254         00111001.00001110.0110 1111.11111110
Hosts/Net: 4094

It'll match 57.14.96-111.x like you are trying to match 57.14.103.x and 57.14.105.x, hope it helps.

Regards,
Tayyab
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

How do you setup 2 nic cards for squid Ubuntu server?

I have a made my squid proxy, I now have add another nic card to an old CPU using Ubuntu server 12.04. I have seen another post similar however I am new and did not understand some of it. Something about redirecting IP address and IP table? I don't know how to do this.:confused: (9 Replies)
Discussion started by: trilju2005
9 Replies

2. Ubuntu

Help asap squid with 2 nic cards setup

I found an old post that talks about 2 nice cards and it is driven by the IP address .... but I didn't understand it because the 2 people skipped information for me the newbie.. Can someone help me... I have the proxy server setup and I believe I have enabled the 2nd nic card, I just need one... (1 Reply)
Discussion started by: trilju2005
1 Replies

3. IP Networking

Best reference for understanding low level info on nic cards drivers and functionality

Hi, What is the best reference that gives in detail on nic cards configuration , assigning multiple ip addresses to a single interface, netlink library etc and all basic stuff at this level..? Thanks (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies

4. HP-UX

HP UX 9000 NIC CARDS

Hello, I am trying to move an HP UX from one locaion to another. The new location don't have any Fiber switches. On the back of my server I see 2 RJ 45 for console management the other for networking , the server also has a fiber NIC card. When I disconnec the fiber and want to user regular... (1 Reply)
Discussion started by: ldaliosmane
1 Replies

5. Red Hat

External NIC cards not pinging with each other in RHEL 5.1

We have a setup of two nodes which has two NIC cards in each. One is built in and another is D-Link (external NIC card). We are unable to ping to the external NIC cards in both. Eg: Node A has two IPs 192.168.1.10 (eth0) and 192.168.2.10 (eth1) and Node B has two IPs 192.168.1.20 (eth0) and... (3 Replies)
Discussion started by: durgaprasadr13
3 Replies

6. HP-UX

routing issues with multiple NIC cards

I am running HP_UX 11.23 with 4 NIC cards (this is our TSM server) I have 4 subnets we are backing across. trying to keep traffic on their subnets. I only have one route statment should I add more. route add net 123.99.8.0 netmask 255.255.255.0 123.99.8.254 route add net 123.99.67.0 netmask... (2 Replies)
Discussion started by: myork
2 Replies

7. High Performance Computing

veritas and nic cards

Hello I have 2 machines with 3 NIC cards. When I setup veritas, I receive this message: e1000g1 has an IP address configured on it. It could be a public NIC on ken. Are you sure you want to use e1000g1 for the first private heartbeat link? As if e1000g1 should not have an IP address.... (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

8. UNIX for Dummies Questions & Answers

UNIX command for ethernet cards?

Hi Gang.. Anybody know the unix (SUN) command to determine how many network cards are installed in a system?? Thx (4 Replies)
Discussion started by: jimmyc
4 Replies

9. Solaris

NIC cards for sunblade 100

I need to add a PCI NIC to a sunblade 100 running solaris 8. Im new to this and was hoping someone could give me some card names and models which will work for this system and has a driver for this sparc system. thanks (3 Replies)
Discussion started by: meyersp
3 Replies

10. UNIX for Dummies Questions & Answers

SCO Unix and Two Network Cards

Our shops server runs SCO Openserver 5 release 5. It has two network cards in it (one on 10.0.0.6 and one on 90.0.0.99). When I run scoadmin and look at the network settings it show both my 3com network cards and a loop back driver http://theentertainer.com/james/untitled.jpg Can anyone tell... (1 Reply)
Discussion started by: potter
1 Replies
Login or Register to Ask a Question