do I need to ifconfig as well as netroute?
Hi all!
My IP address is 192.168.37.2
My friends IP addresses are 10.x.y.z
I want to be able to ping them/have them telnet to me etc.
Is doing
route add -net 10.0.0.0 netmask 255.0.0.0 dev eth0
OK or do I need to do something with ifconfig?
At the moment things look like this:
root@Tiptop:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 2 lo
root@Tiptop:~# route add -net 10.0.0.0 netmask 255.0.0.0 dev eth0
root@Tiptop:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 2 lo
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
ifconfig gives me this:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 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
eth0 Link encap:Ethernet HWaddr 00:60:08:91:22:CB
inet addr:192.168.37.2 Bcast:192.168.37.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
Interrupt:9 Base address:0x300
Thanks
Ian
--
Ian Lynagh - ian@lynagh.demon.co.uk
http://home.sol.no/~balchen/igloo/
We spend the first twelve months of our children's lives teaching them to walk
and talk and the next twelve telling them to sit down and shut up.
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: