Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jun 1997 17:29:19 +0100
From:      Simon N Atkin <simat@enta.net>
To:        freebsd-questions@freebsd.org
Cc:        simat@enta.co.uk
Subject:   Two Ethernet Interfaces in one machine for Firewall, possible ??
Message-ID:  <3396E95F.1C35@enta.net>

next in thread | raw e-mail | index | archive | help
Hi, 
I am trying to setup a 2.2 box to route packets
between two ethernet interfaces on one PC, the two
interfaces are reckonised as de0 (DEC21041 PCI) and
ed1 (ISA NE2000 Compatible),

I have assigned seperate IP's to each interface in
/etc/sysconfig but on start I get the error

ifconfig: ioctl (SIOCAIFADDR): File exists,

if we ifconfig -a we get

de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 194.x.x.99 netmask 0xffffff00 broadcast 194.x.x.255
        ether 00:80:c8:37:70:ce 
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 194.x.x.100 netmask 0xffffff00 broadcast 255.255.255.0
        ether 00:80:c8:37:b9:18 
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 

Note the broadcast on the second interface (ed1).
It must be possible to have two interfaces on one machine
as how do you efficiently build a firewall system ???

Any clues ???

Simon Atkin. :) simat@enta.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3396E95F.1C35>