On 2005-11-04T18:58, netture wrote:
> Hi every one.
> 
> im a newbe with OpenBSD,
> 
> I just wan to know how to set my route table as i  want "during the boot 
> process".
> in fact this is my route table
> 
> $ netstat -rn
> -------------------------------------------------------------------------------
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags     Refs     Use    Mtu  
> Interface
> default            192.168.0.1        UGS         0       22      
> -       em0
> 127/8              127.0.0.1          UGRS        0        0  33224   lo0
> 127.0.0.1          127.0.0.1          UH          1        0  33224    lo0
> 192.168.0/24       link#3             UC          1        0      -      
>  bge0 <--- !!!!!
> 192.168.0.1        link#3             UHLc        1        0      -    
>   bge0 <----!!!!!
> 224/4              127.0.0.1          URS         0        0  33224     lo0
> -------------------------------------------------------------------------------
> 
> and I would like somthing like this
> 
> -------------------------------------------------------------------------------
> Routing tables that i would like
> 
> Internet:
> Destination        Gateway            Flags     Refs     Use    Mtu  
> Interface
> default            192.168.0.1        UGS         0       22      
> -       em0
> 127/8              127.0.0.1          UGRS        0        0  33224   lo0
> 127.0.0.1          127.0.0.1          UH          1        0  33224    lo0
> 192.168.0/24       link#3             UC          1        0      -      
>  em0 <--- !!!!!
> 192.168.0.1        link#3             UHLc        1        0      -    
>   em0 <----!!!!!
> 224/4              127.0.0.1          URS         0        0  33224     lo0
> -------------------------------------------------------------------------------
> 
> I'v try to modify (with no succes) the file /etc/hostname.bge0 by adding 
> the following lines
> 
> ! /sbin/route change -net 192.168.0/24 -ifp em0
> ! /sbin/route change -host 192.168.0.1 -ifp em0

this has nothing to do with routing! Try reading man 5 hostname.if
You could just 'mv /etc/hostname.bge0 /etc/hostname.em0' and you should
get what you want.

And next time please, don't reply to a running thread with a different 
topic.

hth,

Marcus.

Reply via email to