[Xorp-hackers] xorp 1.83 is not work on freebsd 7.3, when config vlan

Ben Greear greearb at candelatech.com
Sun Mar 20 22:57:17 PDT 2011


On 03/20/2011 07:10 PM, wxh585 at 126.com wrote:
> FreeBSD 7.3-RELEASE (GENERIC) #0: Sun Mar 21 06:15:01 UTC 2010
> $ xorpsh
> Welcome to XORP on r.d
> admin at r.d <mailto:admin at r.d>> configure
> Entering configuration mode.
> There are no other users in configuration mode.
> [edit]
> admin at r.d <mailto:admin at r.d># quit
> admin at r.d <mailto:admin at r.d>> quit
> $ uname -a
> FreeBSD r.d 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 root at walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> <mailto:root at walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC> i386
> $ netstat -an
> Active Internet connections (including servers)
> Proto Recv-Q Send-Q Local Address Foreign Address (state)
> tcp4 0 0 127.0.0.1.61150 127.0.0.1.19999 TIME_WAIT
> tcp4 0 48 116.55.13.55.22 116.55.13.212.1816 ESTABLISHED
> tcp4 0 0 127.0.0.1.25 *.* LISTEN
> tcp4 0 0 *.22 *.* LISTEN
> tcp6 0 0 *.22 *.* LISTEN
> tcp4 0 0 127.0.0.1.19999 127.0.0.1.64903 ESTABLISHED
> tcp4 0 0 127.0.0.1.64903 127.0.0.1.19999 ESTABLISHED
> tcp4 0 0 127.0.0.1.19999 *.* LISTEN
> udp4 0 0 *.514 *.*
> udp6 0 0 *.514 *.*
> Active UNIX domain sockets
> Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
> c4555000 stream 0 0 0 c4556738 0 0
> c4556738 stream 0 0 0 c4555000 0 0
> c4555888 stream 0 0 c457a450 0 0 0 /var/tmp/xrl.xlpzOw
> c4555930 stream 0 0 c457a78c 0 0 0 /var/tmp/xrl.Ro92Hr
> c4555dc8 stream 0 0 c4547cf0 0 0 0 /var/run/devd.pipe
> c4556b28 dgram 0 0 0 c4556e70 0 0
> c4556bd0 dgram 0 0 0 c4556dc8 0 0
> c4556dc8 dgram 0 0 c45e433c 0 c4556bd0 0 /var/run/logpriv
> c4556e70 dgram 0 0 c45e4450 0 c4556b28 0 /var/run/log
> $ vty
> Welcome to XORP on r.d
> admin at r.d <mailto:admin at r.d>> configure
> Entering configuration mode.
> There are no other users in configuration mode.
> [edit]
> admin at r.d <mailto:admin at r.d># set interfaces interface fxp1
> [edit]
> admin at r.d <mailto:admin at r.d># commit
> OK
> [edit]
> admin at r.d <mailto:admin at r.d># save /router/run.conf
> ERROR: Save failed.
> File /router/run.conf exists, but an error occured when trying to check that it was OK to overwrite it
> File was NOT overwritten
> admin at r.d <mailto:admin at r.d># save /router/run.conf
> Save done.
> admin at r.d <mailto:admin at r.d># set interfaces interface fxp1.5 ?
> Possible completions:
> <[Enter]> Execute this command
> default-system-config Use default values from the system
> description Add a human-readable description of an interface
> disable Disable a network interface
> discard Configure a discard interface
> iface-type Interface-type: VLAN.
> mac Set the MAC address
> management Configure a management interface
> mtu Set the MTU
> parent-ifname Parent interface this virtual belongs to.
> unreachable Configure an unreachable interface
> vid Virtual Interface Identifier: VLAN-ID for VLANs.
> vif Configure a virtual interface
> { Enter text on multiple lines
> admin at r.d <mailto:admin at r.d># set interfaces interface fxp1.5 iface-type VLAN
> [edit]
> admin at r.d <mailto:admin at r.d># commit
> OK
> [edit]
> admin at r.d <mailto:admin at r.d># set interfaces interface fxp1.5 vi
> `vi' is ambiguous.
> Possible completions:
> vid Virtual Interface Identifier: VLAN-ID for VLANs.
> vif Configure a virtual interface
> admin at r.d <mailto:admin at r.d># set interfaces interface fxp1.5 vid 5
> [edit]
> admin at r.d <mailto:admin at r.d># set interfaces interface fxp1.5 parent-ifname fxp1
> [edit]
> admin at r.d <mailto:admin at r.d># commit
> Commit Failed
> 210 Transport failed[edit]
> admin at r.d <mailto:admin at r.d># Finder disconnected. No Finder?

Looks like the VLAN code must crash on BSD.  I'll see if I can
reproduce that and fix it.

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list