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!?