Re: ip alias
Moin,
On Thu, 2003-04-24 at 22:21, Peter Holm wrote:
> [...]
> schreiben? Oder gehört das nach /etc/network/interfaces, und un
> welcher Form dann?
Ja, so:
=============
auto eth0 eth0:1 eth0:2
# hgb.home
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
broadcast 192.168.10.255
# gw.home
iface eth0:1 inet static
address 192.168.20.2
netmask 255.255.255.0
broadcast 192.168.20.255
# ns.home
iface eth0:2 inet static
address 192.168.30.3
netmask 255.255.255.0
broadcast 192.168.30.255
[...]
=============
>
> Weitere Fage:
>
> muss ich eine Route legen oder nicht? habe da widersprüchliche Infos
> gefunden (angeblich macht es ifconfig selbst, onnte aber nix sehen).
Geht normalerweise "von alleine" bei ifup -a (glaub ich :)
=============
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
xxx.xxx.xxx.xxx 0.0.0.0 255.255.255.0 U 0 0 0
eth1
192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
0.0.0.0 xxx.xxx.xxx.xxx 0.0.0.0 UG 0 0 0
eth1
=============
Gruss
-- hgb
Reply to:
- References:
- ip alias
- From: Peter Holm <pholm@gmx.de>