Re: Static routing question

2014-11-06 Thread rjc
On Thu, Nov 06, 2014 at 04:12:20PM EST, "Dante F. B. Colò" wrote:

> Hello everyone

Hi Dante,

> I'm trying to setup some static routes on a openbsd 4.9 box for some 
> public addresses , the machine has two ethernet cards *bnx0 ***and *bnx1 
> ***, *bnx0* is attached to a Cisco internet router and *bnx1*** is 
> connected to a switch, both interfaces  have  public addresses of the 
> same range , *bnx1 *appears has absolutely no communication  ,  i took a 
> look at the static routes and there is a route for the subnet that it 
> goes to *bnx0* , i'm trying to add a static route for the ip address 
> pointing to the***bnx1 *without pass gateway using *-iface* parameter 
> but always returns "Network unreachble", someone can help me or give 
> some tips to fix this ? for many here this is probably a nooby question, 
> we also have some firewall Linux boxes that i'm gonna migrate to openbsd 
> but first i have to solve this.

First and foremost, if you ask any questions regarding networking, you
should include the content of:

/etc/hostname.bnx{0,1}
/etc/mygate # if it exists and you're not using DHCP

Please also include the output of:

router show

and any commands exactly as you enter them.

That would be a good place to start - BTW, this information should have
been included in the first email.

Regards,

rjc

P.S. 4.9? Isn't it time to upgrade? ;^)



Re: Interface sequencing

2014-11-05 Thread rjc
On Wed, Nov 05, 2014 at 01:23:20PM EST, Jason Adams wrote:
> On 11/05/2014 07:48 AM, Stefan Olsson wrote:
> > is it not enough to just append the following to /etc/dhclient.conf?:
  ^

> > interface "em0" {
> > ignore routers;
> > }
> 
> Without the encapsulating {} braces, it does NOT work.
> No documentation on hostname.if suggested using braces, so it never
> occurred to me.

As above - you are looking in the wrong place.

man 5 dhclient.conf

OTHER DECLARATIONS
[...]
interface "name" { declaration; ...; }
A client with more than one network interface may require
different behaviour depending on which interface is being
configured. [...]

Regards,

rjc