ifconfig + alias
Juraj Lutter
otis at ncc.nextra.sk
Mon Sep 3 10:58:20 CEST 2001
aliasove adresy by mali mat netmask 255.255.255.255, cize:
otis@[real /home/otis] > ifconfig ep0 inet
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
media: Ethernet 10baseT
inet 195.168.11.60 netmask 0xffffff00 broadcast 195.168.11.255
inet 195.168.11.61 netmask 0xffffffff broadcast 195.168.11.61
inet 195.168.11.62 netmask 0xffffffff broadcast 195.168.11.62
inet 195.168.11.63 netmask 0xffffffff broadcast 195.168.11.63
inet 195.168.11.250 netmask 0xffffffff broadcast 195.168.11.250
takto to funguje.
otis
On Mon, Sep 03, 2001 at 10:49:38AM +0200, Pavel Hlubik wrote:
> Dobry den,
>
> neporadite mi nekdo jak nastavit alias pro sitovou kartu? Zkousim to 2
> zpusoby a porad nic.
>
> 1. na prikazove radce
> ifconfig ep0 inet 192.168.1.12 netmask 255.255.255.0 alias
> obdrzim chybove hlaseni: "ifconfig: ioctl (SIOCAIFADDR): File exists"
>
> 2. pres soubor /etc/rc.conf
> ifconfig_ep0_alias0="inet 192.168.1.12 netmask 255.255.255.0"
>
> Po zadani prikazu ipconfig je sice IP adresa vypsana, ale ping na ni
> nefunguje.
>
> ...
> ...
> ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
> inet6 fe80::2a0:24ff:fe6c:7755%ep0 prefixlen 64 scopeid 0x2
> inet 192.168.1.12 netmask 0xffffff00 broadcast 192.168.1.255
> ether 00:a0:24:6c:77:55
> media: 10baseT/UTP
> supported media: 10baseT/UTP
> ...
> ...
>
> Predem diky za radu.
>
> Pavel Hlubik
> hlubik at dashofer.cz
>
--
Juraj Lutter
http://wilbury.sk/
More information about the Users-l
mailing list