Skip site navigation (1)Skip section navigation (2)
Date:      16 Jan 2003 07:13:08 +0000
From:      Stacey Roberts <stacey@vickiandstacey.com>
To:        Brian Astill <bastill@adam.com.au>
Cc:        Nikolaj Farrell <nikk@home.se>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG>, wmoran@potentialtech.com
Subject:   Re: Problems w NIC
Message-ID:  <1042701186.51041.430.camel@localhost>
In-Reply-To: <3E265883.8050005@adam.com.au>
References:  <001701c2b987$9fdf72e0$0100a8c0@athlon> <1042300066.51041.227.camel@localhost> <002a01c2b989$f2099e90$1200a8c0@gsicomp.on.ca> <000b01c2b98a$df9981c0$0100a8c0@athlon> <1042301568.51041.233.camel@localhost> <001201c2b98e$063311e0$0100a8c0@athlon> <1042303096.51041.237.camel@localhost> <000301c2b993$55e70610$0100a8c0@athlon> <20030111171152.GH25529@sub21-156.member.dsl-only.net> <001b01c2b995$0dbf6d30$0100a8c0@athlon> <1042305860.51041.240.camel@localhost> <001801c2b999$95567000$0100a8c0@athlon> <1042310110.51041.250.camel@localhost> <002b01c2b9c3$56722e40$0100a8c0@athlon> <1042325630.51041.257.camel@localhost> <003701c2b9c4$db6e6950$0100a8c0@athlon> <1042328202.51041.268.camel@localhost> <00c301c2b9cd$71a44360$0100a8c0@athlon> <1042329896.51041.273.camel@localhost> <000a01c2b9cf$fb483f20$0100a8c0@athlon>  <3E25F20A.2030009@adam.com.au> <1042674635.51041.412.camel@localhost>  <3E261D65.8050801@adam.com.au> <1042696803.51041.416.camel@localhost>  <3E265883.8050005@adam.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Thu, 2003-01-16 at 07:00, Brian Astill wrote:
> Stacey Roberts and Bill Moran wrote stuff:
> Wot I dun:
> root@BAPhD ~ #ifconfig rl1 inet 192.168.1.100 netmask 255.255.255.0
> ifconfig: ioctl (SIOCAIFADDR): File exists

This is a problem. "ifconfig is complaining about duplicate entries for
IP information. Despite the error though, the command would appear to go
through.

> root@BAPhD ~ #ifconfig -a
> rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>        inet6 fe80::205:1cff:fe01:9622%rl1 prefixlen 64 scopeid 0x2
>        ether 00:05:1c:01:96:22
>        media: Ethernet autoselect (100baseTX <full-duplex>)
>        status: active
> At that point the two amber lights for that system light up on the hub - 
> Yeah!

No., this is not right here. There is no IP address returned for rl1

> 
> 
> Altered rc.conf as follows
> # -- sysinstall generated deltas -- # Sun Dec  1 22:00:04 2002
> ifconfig_rl0="inet 192.168.1.100  netmask 255.255.255.0"
> # added this line after manual invoking of rl1 using ifconfig
> ifconfig_rl1="inet 192.168.1.100  netmask 255.255.255.0"
> defaultrouter="192.168.1.1"
> 

Here you go.., You have given the same IP Addr / netmasks information to
both rl0 & rl1 - this is not right.

> I have given both NICs the same address because they are both on the 
> same machine - is this right or wrong?
> 

In your earlier message, you mentioned that rl0 is connected to a cable
modem and rl1 is connected to a lan. rl0 should have a different IP
address.., indeed a different network altogether as against rl1.

To make life easier, you should configure rl1 with another completely
different RFC1918 IP address. So if you're using 192.168.x.x for rl0,
use an IP addr from the 172.16.x.x or 10.x.x.x ranges for rl1.

Your set up appears to be that of a gateway. If so, google for "dual
homed hosts" and have a read of what is required to set it all up.

Hope this helps.

Regards,

Stacey

> --
> Brian
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1042701186.51041.430.camel>