ifconfig + alias

Pavel Hlubik hlubik at dashofer.cz
Mon Sep 3 10:49:38 CEST 2001


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




More information about the Users-l mailing list