From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9e943f880c63cc59 X-Google-Attributes: gid1164f8,public From: nobody@zk3.dec.com (Eric Werme - replace nobody with werme) Subject: Re: Why doesn't ifconfig work? Date: 1998/04/30 Message-ID: <6iar3m$ot7$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 349253493 References: <354744C0.E2B6F10C@ral1.zko.dec.com> Organization: UBPG Reply-To: (Replace nobody with werme) nobody@zk3.dec.com Newsgroups: comp.sys.dec John Chambers writes: >On this Digital Unix 4.0B system, and on another 4.0D system, the ifconfig >command doesn't seem to be able to change IP addresses at all. It always >gives a 1 exit status, implying that it thinks that it has worked, but in fact >the address doesn't change. Here's some evidence: I've always thought the ifconfig "parser" (hah!) should be rewritten. Here are some suggestions from someone who actually gets to work on it. This is one way: # ifconfig tu1 10.1.1.1 netmask 255.255.255.0 # ifconfig tu1 tu1: flags=c63 inet 10.1.1.1 netmask ffffff00 broadcast 10.1.1.255 ipmtu 1500 # ifconfig tu1 down delete tu1: delete inet address 10.1.1.1 # ifconfig tu1 tu1: flags=c62 # ifconfig tu1 10.1.2.3 netmask 255.255.255.0 # ifconfig tu1 tu1: flags=c63 inet 10.1.2.3 netmask ffffff00 broadcast 10.1.2.255 ipmtu 1500 This is much "slicker": # ifconfig tu1 10.1.1.1 netmask 255.255.255.0 tu1: flags=c63 inet 10.1.1.1 netmask ffffff00 broadcast 10.1.1.255 ipmtu 1500 # ifconfig tu1 alias 10.1.2.3 netmask 255.255.255.0 # ifconfig tu1 -alias 10.1.1.1 # ifconfig tu1 tu1: flags=c63 inet 10.1.2.3 netmask ffffff00 broadcast 10.1.2.255 ipmtu 1500 -- <> Eric (Ric) Werme <> The above is unlikely to contain <> <> ROT-13 addresses: <> official claims or policies of <> <> <> Digital Equipment Corp. <> <> <> http://www.cyberportal.net/werme <>