From owner-freebsd-net@FreeBSD.ORG Wed May 17 23:08:53 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B1B616A518 for ; Wed, 17 May 2006 23:08:53 +0000 (UTC) (envelope-from mosfet@planet.eon.net) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7119C43D5C for ; Wed, 17 May 2006 23:08:45 +0000 (GMT) (envelope-from mosfet@planet.eon.net) Received: from localhost ([199.185.220.240]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060517230845.MDU13301.priv-edtnes51.telusplanet.net@localhost>; Wed, 17 May 2006 17:08:45 -0600 Received: from 208.38.59.80 ( [208.38.59.80]) as user lsc.-ir@192.168.200.1 by webmail.telus.net with HTTP; Wed, 17 May 2006 16:08:45 -0700 Message-ID: <1147907325.446bacfd29d21@webmail.telus.net> Date: Wed, 17 May 2006 16:08:45 -0700 From: sfp To: Unix-Solutions - Steven References: <001301c67946$604b7f70$aa00000a@cloe><20060517005546.GJ65555@funkthat.com><20060517010927.GA656@gremlin.foo.is> <009701c67964$fe20f0e0$42764eca@ilo.skyinet.net> <009d01c679a5$a8444910$aa00000a@cloe> In-Reply-To: <009d01c679a5$a8444910$aa00000a@cloe> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 208.38.59.80 Cc: freebsd-net@freebsd.org Subject: Re: /31 on 2 interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 23:08:53 -0000 No love with a /31 mask & default bcast addr. Perhaps ARP reqs are failing to the subnet bcast address, didn't check. To fix, specify an all ones broadcast. Tested this against 6.0-Release & a Juniper box that was handy. As always, YMMV. Oliver has a point though, why not just use a /30 & save yourself the grief? ifconfig vlan20 10.10.20.2 netmask 255.255.255.254 broadcast 255.255.255.255 [root@itestbox itest1]# ifconfig vlan20 vlan20: flags=8843 mtu 1500 inet6 fe80::210:4bff:fe14:bc03%vlan20 prefixlen 64 scopeid 0x11 inet 10.10.20.2 netmask 0xfffffffe broadcast 255.255.255.255 ether 00:02:b3:ab:66:3c media: Ethernet 100baseTX status: active vlan: 20 parent interface: em1 set interfaces fxp1 unit 0 family inet address 10.10.20.3/31 broadcast 255.255.255.255 jtest1@jtestbox> show interfaces fxp1.0 extensive Logical interface fxp1.0 (Index 66) (SNMP ifIndex 14) (Generation 3) Flags: SNMP-Traps Encapsulation: ENET2 Protocol inet, MTU: 1500, Generation: 9, Route table: 0 Flags: None Addresses, Flags: Is-Preferred Is-Primary Destination: 10.10.20.2/31, Local: 10.10.20.3, Broadcast: Unspecified, Generation: 23 [root@itestbox itest1]# ping -qnc2 10.10.20.3 PING 10.10.20.3 (10.10.20.3): 56 data bytes --- 10.10.20.3 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.369/0.439/0.508/0.070 ms jtest1@jtestbox> ping 10.10.20.2 count 2 PING 10.10.20.2 (10.10.20.2): 56 data bytes 64 bytes from 10.10.20.2: icmp_seq=0 ttl=64 time=0.407 ms 64 bytes from 10.10.20.2: icmp_seq=1 ttl=64 time=0.412 ms --- 10.10.20.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.407/0.409/0.412/0.002 ms jtest1@jtestbox> monitor traffic interface fxp1 extensive Listening on fxp1, capture size 96 bytes 19:31:39.559772 In 0:2:b3:ab:66:3c > 0:2:b3:9:57:dd, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 6478, offset 0, flags [none], proto: ICMP (1), length: 84) 10.10.20.2 > 10.10.20.3: ICMP echo request seq 0, length 64 19:31:39.559865 Out 0:2:b3:9:57:dd > 0:2:b3:ab:66:3c, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 39612, offset 0, flags [none], proto: ICMP (1), length: 84) 10.10.20.3 > 10.10.20.2: ICMP echo reply seq 0, length 64 19:31:40.561499 In 0:2:b3:ab:66:3c > 0:2:b3:9:57:dd, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 6482, offset 0, flags [none], proto: ICMP (1), length: 84) 10.10.20.2 > 10.10.20.3: ICMP echo request seq 1, length 64 19:31:40.561579 Out 0:2:b3:9:57:dd > 0:2:b3:ab:66:3c, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 39615, offset 0, flags [none], proto: ICMP (1), length: 84) 10.10.20.3 > 10.10.20.2: ICMP echo reply seq 1, length 64 ^C 4 packets received by filter 0 packets dropped by kernel Quoting Unix-Solutions - Steven : > I'm need a point-to-point link between 2 servers > with just a crossover cable between the servers. > > ----- Original Message ----- > From: "fooler" > To: "Kim Shrier" ; "Unix-Solutions - Steven" > > Cc: > Sent: Wednesday, May 17, 2006 5:49 AM > Subject: Re: /31 on 2 interfaces > > > > ----- Original Message ----- > > From: "Kim Shrier" > > To: "Unix-Solutions - Steven" > > Cc: > > Sent: Wednesday, May 17, 2006 9:20 AM > > Subject: Re: /31 on 2 interfaces > > > > > >>A /31 is not a point-to-point link. > > > > see RFC 3021 > > > >> A /31 is a network with nothing but a loopback and broadcast address. > > > > not a loopback address but a network address (all zeros bit) and a > > broadcast address (all ones bit) > > > > fooler. > > > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >