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
 
LinkBack Search this Thread
Old 08-07-2005, 09:42 AM   #1
lucasnishimura
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Multiple Subnets


I'm pretty new to linux(slackware10.1) and i my trying to build a box with 2 differents subnets. So i done the folowing.

ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:50:BF:B4:0D:10
          inet addr:10.1.1.150  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:1152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:620 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:116001 (113.2 Kb)  TX bytes:62642 (61.1 Kb)
          Interrupt:3 Base address:0x9000

eth1      Link encap:Ethernet  HWaddr 00:10:4B:87:36:1F
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:12
          collisions:0 txqueuelen:1000
          RX bytes:4047 (3.9 Kb)  TX bytes:720 (720.0 b)
          Interrupt:10 Base address:0x9400

eth2      Link encap:Ethernet  HWaddr 00:11:D8:D3:A5:4B
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:84 (84.0 b)
          Interrupt:3 Base address:0x9800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1344 (1.3 Kb)  TX bytes:1344 (1.3 Kb)
eth1 and eth2 are Nic for 2 diferents subnets, however im not able to ping them from they're respective subnets....

I think this might help
Code:
root@auth:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.1.1.1        0.0.0.0         UG    1      0        0 eth0
Can any one help!?

Last edited by lucasnishimura; 08-07-2005 at 09:44 AM.
 
Old 08-07-2005, 11:32 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 31
Hi,

your config looks all right...
that looks silly, but are you sure that yours wires are connected to the right NICs?
you can verify that the interfaces are really up py pinging them locally (I mean ping 192.168.1.1 and 192.168.2.1 from a local console).
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with arpwatch and snort using 2 NIC and multiple subnets benwaynet Linux - Security 0 12-20-2004 01:22 PM
multiple subnets Suse 9 lomfs24 Linux - Networking 1 06-15-2004 04:43 PM
Routing multiple subnets to multiple wans raven1000x Linux - Networking 1 03-10-2004 02:29 AM
Help with samba nad multiple subnets handsake Linux - Networking 4 12-22-2002 04:30 PM
DHCP server with multiple nics and subnets hawkpaul Linux - Networking 6 12-20-2001 07:32 AM


All times are GMT -5. The time now is 05:48 AM.

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
Open Source Consulting | Domain Registration