ifconfig + alias
Tomas Podermanski
tpoder at kn.vutbr.cz
Mon Sep 3 16:08:28 CEST 2001
Ja tedy nevim, ale konfigurace v rc.conf
ifconfig_fxp0="inet 147.229.191.135 netmask 255.255.255.128"
ifconfig_fxp0_alias0="inet 147.229.191.136 netmask 255.255.255.128"
defaultrouter="147.229.191.129"
funguje naprosto bez problemu - muzete si na to i pingnout
[root at paja r-tp]# ifconfig
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 147.229.191.135 netmask 0xffffff80 broadcast
147.229.191.255
inet6 fe80::2e0:18ff:fe98:bb87%fxp0 prefixlen 64 scopeid 0x1
inet 147.229.191.136 netmask 0xffffff80 broadcast
147.229.191.255
ether 00:e0:18:98:bb:87
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Dokonce funguje i exotika, kde na jednom rozhrani jsou nastaveny
rozdilne masky pricemz jedna sit je podmnozinou te druhe :-) (taky si
muzete pingnout)
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 147.229.96.2 netmask 0xfffffe00 broadcast 147.229.97.255
inet6 fe80::2a0:24ff:fe2d:8d85%ep0 prefixlen 64 scopeid 0x3
inet 147.229.97.254 netmask 0xffffff80 broadcast 147.229.97.255
ether 00:a0:24:2d:8d:85
media: 10baseT/UTP
supported media: 10base2/BNC 10baseT/UTP 10base5/AUI
T. Podermanski
Dan Lukes wrote:
>
> Pavel Hlubik wrote:
>
> > neporadite mi nekdo jak nastavit alias pro sitovou kartu? Zkousim to 2
> > zpusoby a porad nic.
>
> > ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> > inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
> > inet 192.168.1.12 netmask 0xffffff00 broadcast 192.168.1.255
>
> Vzdyt' jsou obe ty adresy ze stejne site ...
>
> To ma jaky smysl ?
>
> Nicmene, stejne poradim - u te druhe adresy musite pouzit masku
> 255.255.255.255, jinak to skutecne nechodi. Kazdopadne, u takovehle
> konfigurace cihaji ruzne zaludnosti na mistech necekanych, takze, pokud
> to takhle opravdu nepotrebujete nutne a/nebo pokud nevite naprosto
> presne co delate, pak vas od teto knfigurace zrazuji.
>
> Dan
>
> --
> Dan Lukes tel: +420 2 21914205, fax: +420 2 21914206
> root of FIONet, KolejNET, webmaster of www.freebsd.cz
> AKA: dan at obluda.cz, dan at freebsd.cz, dan at kolej.mff.cuni.cz
More information about the Users-l
mailing list