About this list Date view Thread view Subject view Author view Attachment view

From: Gilles (gilles_at_harfang.homelinux.org)
Date: Sat 21 May 2005 - 23:04:37 BST


Further information.

>
> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
> 192.168.79.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.3
> 192.168.107.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.4
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0.2
> 0.0.0.0 192.168.107.20 0.0.0.0 UG 0 0 0 eth0.4
>
>
> I can log into Vs1 from Host1.
> But from inside Vs1 I cannot reach neither Host2 nor the Internet.
> I assume it is a matter of adding the right routing information... but I don't
> know what it is :-/
>

I added "network" and "gateway" lines in the "/etc/network/interfaces" file
(Debian) for each of the VLAN interfaces. And now I can, from Vs1, log into
Host2, e.g. using

  # ssh 192.168.83.2

I still can't connect to the outside, and also not to another address of Host2
e.g. with

  # ssh 192.168.107.20

This is the routing table on Host1:

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
192.168.79.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.3
192.168.107.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.4
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0.2
0.0.0.0 192.168.107.20 0.0.0.0 UG 0 0 0 eth0.4
0.0.0.0 192.168.79.2 0.0.0.0 UG 0 0 0 eth0.3
0.0.0.0 192.168.83.2 0.0.0.0 UG 0 0 0 eth0.2

And this is inside Vs1:

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
192.168.79.0 0.0.0.0 255.255.255.0 U 0 0 0 *
192.168.107.0 0.0.0.0 255.255.255.0 U 0 0 0 *
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0.2
0.0.0.0 0.0.0.0 0.0.0.0 UG 0 0 0 *
0.0.0.0 0.0.0.0 0.0.0.0 UG 0 0 0 *
0.0.0.0 192.168.83.2 0.0.0.0 UG 0 0 0 eth0.2
 

What do those "*" mean, in the "Iface" column?
Is it OK to have several "default" routes. Those are automatically created from
the "gateway" lines in file "/etc/network/interfaces")?

Gilles
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 21 May 2005 - 23:05:29 BST by hypermail 2.1.3