Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2006 13:09:17 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-stable@freebsd.org
Cc:        Tom Jobbins <tomjobbins@gmail.com>
Subject:   Re: Two PPP connections to the same ISP with same remote gateway
Message-ID:  <200601131309.24446.doconnor@gsoft.com.au>
In-Reply-To: <a3d37d280601121337y64ec3965r@mail.gmail.com>
References:  <a3d37d280601121337y64ec3965r@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1205647.GkngyXHWKv
Content-Type: multipart/mixed;
  boundary="Boundary-01=_WLxxDxoRnql2rIw"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_WLxxDxoRnql2rIw
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Fri, 13 Jan 2006 08:07, Tom Jobbins wrote:
> This can be demonstrated from the command line with the following:
> [root@magrathea:~]$ ifconfig tun0 1.2.3.5 1.2.3.250
> [root@magrathea:~]$ ifconfig tun1 1.2.4.4 1.2.3.250
> ifconfig: ioctl (SIOCAIFADDR): File exists

This is really odd, because I don't see this on my machines (as per our dis=
cussion on IRC which you mention below), I did..

midget# uname -a
=46reeBSD midget.dons.net.au 5.4-STABLE FreeBSD 5.4-STABLE #4: Mon Aug  1 0=
9:01:42 CST 2005    darius@midget.dons.net.au:/usr/src/sys/i386/compile/MID=
GET  i386

midget# cat /dev/tun &
[1] 21524
midget# cat /dev/tun &
[2] 21525
midget# ifconfig tun0
tun0: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
midget# ifconfig tun1
tun1: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
        Opened by PID 21524
midget# ifconfig tun2
tun2: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
        Opened by PID 21525
midget# ifconfig tun1 1.2.3.4 1.2.3.254
midget# ifconfig tun2 1.2.3.5 1.2.3.254
midget# ifconfig tun1
tun1: flags=3D8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 1.2.3.4 --> 1.2.3.254 netmask 0xff000000
        inet6 fe80::290:27ff:fe45:a94%tun1 prefixlen 64 scopeid 0x8
        Opened by PID 21524
midget# ifconfig tun2
tun2: flags=3D8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 1.2.3.5 --> 1.2.3.254 netmask 0xff000000
        inet6 fe80::290:27ff:fe45:a94%tun2 prefixlen 64 scopeid 0x9
        Opened by PID 21525

I also tried with a netmask of 255.255.255.255 - same result.

my sysctl.conf contains..
net.inet.ip.fw.one_pass=3D0
hw.intr_storm_threshold=3D15000
hw.snd.maxautovchans=3D4
hw.snd.pcm0.vchans=3D4

My kernel config is pretty standard - I've attached it if you want to look=
=20
through it.

I also tried it on a 6.0 amd64 machine -=20
=46reeBSD eureka.gsoft.com.au 6.0-RC1 FreeBSD 6.0-RC1 #0: Wed Oct 26 13:29:=
47 UTC 2005     root@chungli-pr.gsoft.com.au:/usr/obj/local0/src/sys/GENESI=
S  amd64

Same result..

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--Boundary-01=_WLxxDxoRnql2rIw
Content-Type: text/plain;
  charset="iso-8859-1";
  name="MIDGET"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="MIDGET"

machine		i386
cpu		I686_CPU
ident		MIDGET

options 	SCHED_4BSD		# 4BSD scheduler
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	MD_ROOT			# MD is a potential root device
options 	PSEUDOFS		# Pseudo-filesystem framework
options 	GEOM_GPT		# GUID Partition Tables.
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	SCSI_DELAY=1000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

device		apic			# I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
device		isa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		ataraid		# ATA RAID drives
device		atapicd		# ATAPI CDROM drives
device		atapicam

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx

# Add suspend/resume support for the i8254.
device		pmtimer

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device

# Pseudo devices.
device		loop		# Network loopback
device		mem		# Memory and kernel memory devices
device		io		# I/O device
device		random		# Entropy device

device		ether		# Ethernet support
device		bpf		# Berkeley packet filter

device		pf		#PF OpenBSD packet-filter firewall
device		pflog		#logging support interface for PF
device		pfsync		#synchronization interface for PF

# altq(9). Enable the base part of the hooks with the ALTQ option.
# Individual disciplines must be built into the base system and can not be
# loaded as modules at this point. In order to build a SMP kernel you must
# also have the ALTQ_NOPCC option.
options		ALTQ
options		ALTQ_CBQ	# Class based queuing
options		ALTQ_RED	# Random Early Detection
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler
options         ALTQ_CDNR       # Traffic conditioner
options         ALTQ_PRIQ       # Priority Queueing

options		IPFIREWALL
options		IPFIREWALL_DEFAULT_TO_ACCEPT
options		IPDIVERT

device		pty
device		nmdm


--Boundary-01=_WLxxDxoRnql2rIw--

--nextPart1205647.GkngyXHWKv
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDxxLc5ZPcIHs/zowRAqtIAJ48Jfohbai0zV1FcpW+uk/EqQbTxwCeJU5u
k5UYcbCYmszndTa3kkyST2A=
=D3m2
-----END PGP SIGNATURE-----

--nextPart1205647.GkngyXHWKv--



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