tech@ is the wrong mailing list. moved to m...@.

On 2009/01/14 17:52, Ramon F. McDougall wrote:
> Good Afternoon,
> 
> Thanks again for all for your input. I took a chance and ran vi on 
> 
> /etc/hostname.vr1 and overwrote the file with:
> 
> inet 206.56.121.224 255.255.255.0 NONE but it did not work. I continued
> searching and found an obscure link which I can't find again but it went
> something like this.
> 
> # ifconfig 205.56.121.224 255.255.255.0 NONE up 

this syntax is for hostname.* files, it is incorrect syntax for ifconfig.


> Then
> 
> # echo inet 192.168.1.64 255.255.0.0 NONE > /etc/hostname.vr1
> 
> After doing this I rebooted to make sure everything reset, upon reboot I was
> able to ping the three interfaces.
> 
> I thought that echo was only to display characters on the screen. Where is
> the magic of that command?

please read some introductory material to unix and the shell.


> Many thanks to all!
> 
> Kind Regards,
> 
> Ramon
> 
> -----Original Message-----
> From: patrick keshishian [mailto:pkesh...@gmail.com] 
> Sent: Tuesday, January 13, 2009 11:44 PM
> To: Ramon F. McDougall
> Cc: t...@openbsd.org
> Subject: Re: Adding a third NIC to openBSD 4.4
> 
> On Tue, Jan 13, 2009 at 6:21 PM, Ramon F. McDougall
> <r...@hyteksolutions.com> wrote:
> > I just noticed that the NIC that is not working has an extraneous # sign
> at
> > line's end. When I view this file with the editor it does not show up. I
> > think that's why it's not working. Your suggestions are greatly
> appreciated.
> [...]
> > # cat /etc/hostname.vr0
> > inet 206.56.121.223 255.255.255.0 NONE
> > # cat /etc/hostname.vr1
> > inet 206.56.121.224 255.255.255.0 NONE#
> > # cat /etc/hostname.sis0
> > inet 206.56.121.222 255.255.255.0 NONE
> 
> are you sure it has a '#' or that it is missing the newline? I bet the
> # is your prompt after cat command is finished.
> 
> 'hexdump -C /etc/hostname.vr1' to be sure.
> 
> --patrick

Reply via email to