On Fri, 13 Jan 2006 08:07, Tom Jobbins wrote:
> This can be demonstrated from the command line with the following:
> [EMAIL PROTECTED]:~]$ ifconfig tun0 1.2.3.5 1.2.3.250
> [EMAIL PROTECTED]:~]$ 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 
discussion on IRC which you mention below), I did..

midget# uname -a
FreeBSD midget.dons.net.au 5.4-STABLE FreeBSD 5.4-STABLE #4: Mon Aug  1 
09:01:42 CST 2005    [EMAIL PROTECTED]:/usr/src/sys/i386/compile/MIDGET  i386

midget# cat /dev/tun &
[1] 21524
midget# cat /dev/tun &
[2] 21525
midget# ifconfig tun0
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
midget# ifconfig tun1
tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
        Opened by PID 21524
midget# ifconfig tun2
tun2: flags=8010<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=8051<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=8051<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=0
hw.intr_storm_threshold=15000
hw.snd.maxautovchans=4
hw.snd.pcm0.vchans=4

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

I also tried it on a 6.0 amd64 machine - 
FreeBSD eureka.gsoft.com.au 6.0-RC1 FreeBSD 6.0-RC1 #0: Wed Oct 26 13:29:47 UTC 
2005     [EMAIL PROTECTED]:/usr/obj/local0/src/sys/GENESIS  amd64

Same result..

-- 
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
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

Attachment: pgpqNn965xbD7.pgp
Description: PGP signature

Reply via email to