cannot get rc.conf to configure an second interface

Ciprian Badescu ciprianbadescu at yahoo.com
Fri Aug 27 00:31:10 PDT 2004


--- Eric F Crist <ecrist at secure-computing.net> wrote:

> Bob Ababurko wrote:
> 
> > Hello-
> > 
> >   I am trying to configure rc.conf to set up my
> second interface.  Right 
> > now, I have these lines in the rc.conf file and
> when I boot the mahine, 
> > fxp1 is not configured.  Also, it seems that that
> ipv6 is set up an I am 
> > not sure how to disable it.  Here is my rc.conf
> entries that refer to 
> > the network:
> > 
> > ifconfig_fxp0="inet 192.168.102.14  netmask
> 255.255.255.0"
> > ifconfig_fxp1="inet 192.168.102.15  netmask
> 255.255.255.0"
 
Hi,


You should let one interface configured normally, with
24 bits netmask (255.255.255.0), but for the
others(one or more) you must use 32 bits netmask
(255.255.255.255).
If you use use 32 bits netmask for all interfaces,
outgoing IP packets will reach the router even the
destination is on 192.168.102.0/24 network and could
be reached directly. 

-----------
Ciprian

> > defaultrouter="192.168.102.1"
> > 
> >   IS there thing else that I need to do to
> configure fxp1 to survive a 
> > reboot?  One thing that happens when I configure
> the NIC with ifconfig 
> > is this:
> > bash-2.05b# ifconfig fxp1 192.168.102.15 netmask
> 255.255.255.0
> > ifconfig: ioctl (SIOCAIFADDR): File exists
> > what I end up needing to do is configure the IP
> and then the network, 
> > separately.  I think that this error has something
> to do with my 
> > problem, but I am not sure how to deal with that. 
> Any info that anyone 
> > ca lead me to will be great.
> > 
> > thanks,
> > Bob
> 
> If I've been learning anything lately, you cannot
> have two interfaces 
> configured on the same subnet on FreeBSD.  The boot
> process is erroring 
> out on this, hence why you're getting the ifconfig
> error listed above. 
> One way to get around this is set those interfaces
> with a netmask of all 
> ones, or 255.255.255.255, or simply do have these
> entries in you're 
> rc.conf file:
> 
> ifconfig_fxp0="inet 192.168.102.14/32"
> ifconfig_fxp1="inet 192.168.102.15/32"
> defaultrouter="192.168.102.1"
> 
> Again, this is if I got everything correctly.
> 
> HTH
> 
> Eric F Crist
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


More information about the freebsd-questions mailing list