Point-to-point over ethernet
Anton Blad
antbl656 at student.liu.se
Fri Jun 20 07:28:46 PDT 2003
Hello.
I have problems setting up a point-to-point link on an ethernet interface.
The computers on the link have IP:s 130.236.214.201 and 130.236.236.148,
130.236.214.201 being a FreeBSD box running 5.1.
In the ifconfig man page I saw the dest_address option for point-to-point
links. However, this set the broadcast instead and didn't seem to work.
Maybe it expects the interface to have the POINTOPOINT flag set..
Then on the net I saw that I needed to use "route add -interface", so I
tested:
# ifconfig rl1 inet 130.236.214.201/32
# route add -interface 130.236.236.148 130.236.214.201 -ifp rl1
The configuration is then
# ifconfig rl1
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20a:cdff:fe02:e307%rl1 prefixlen 64 scopeid 0x3
inet 130.236.214.201 netmask 0xffffffff broadcast 130.236.214.201
ether 00:0a:cd:02:e3:07
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
# netstat -rnf inet
Destination Gateway Flags Refs Use Netif Expire
default 130.236.214.1 UGSc 7 51450 rl0
127.0.0.1 127.0.0.1 UH 4 15049 lo0
130.236.214/24 link#2 UC 2 0 rl0
130.236.214.1 00:20:9c:53:49:c4 UHLW 6 1146 rl0 1200
130.236.214.201 00:0a:cd:02:e3:07 UHLW 2 2 lo0 =>
130.236.214.201/32 link#3 UC 1 0 rl1
130.236.214.255 ff:ff:ff:ff:ff:ff UHLWb 0 6 rl0
130.236.236.148 130.236.214.201 UHS 0 4 rl1
Then I get in the log:
Jun 20 15:33:54 stonesail kernel: arp_rtrequest: bad gateway value
Jun 20 15:34:41 stonesail kernel: arplookup 130.236.236.148 failed: could
not allocate llinfo
Jun 20 15:34:41 stonesail kernel: arpresolve: can't allocate llinfo for
130.236.236.148rt
I have the address 130.236.214.201 on the external interface rl0 too and
thought this could be the problem, so I tried to setup the link on the 10
net too. I tried different addresses, both on and off the net, and I tried
different netmasks. I got the same error, though, and not even an arp
request on the interface.
What do I do wrong? I'm thankful for any help.
/ Anton
More information about the freebsd-net
mailing list