Date: Sat, 24 Aug 2002 22:30:01 +0200 From: Hanspeter Roth <hanspeter_roth@hotmail.com> To: freebsd-questions@freebsd.org Subject: isp, dhcp, mac routing Message-ID: <20020824223001.A596@gicco.cablecom.ch>
next in thread | raw e-mail | index | archive | help
Hello, I have two hosts connected to my ISP via a local switch and a cable modem. Host A has an ethernet address of 00:00:e8:63:09:f3 and an ip address of 200.200.157.14. Host B has an ethernet address of 00:e0:98:77:6c:ba and an ip address of 200.200.157.13. Both hosts have the same router of the ISP as the default route. They both have a netmask of 0xfffffc00 and a broadcast address of 255.255.255.255 and they share the same subnet. At first the two hosts don't show up in each other's routing table. After a ssh session from host A to host B in B's routing table host A's ethernet address shows up: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 200.200.156.1 UGSc 17 4 ed0 127.0.0.1 127.0.0.1 UH 2 320 lo0 192.168.0 link#4 UC 0 0 vmnet1 200.200.156/22 link#5 UC 2 0 ed0 200.200.156.1 00:09:7b:8e:90:54 UHLW 18 0 ed0 1200 200.200.157.13 127.0.0.1 UGHS 0 2 lo0 200.200.157.14 00:00:e8:63:09:f3 UHLW 0 2 ed0 133 But in A's routing table host B is still routed via the default router: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 200.200.156.1 UGSc 7 0 rl0 127.0.0.1 127.0.0.1 UH 2 33 lo0 192.168.2 link#5 UC 0 0 vmnet1 200.200.156/22 link#1 UC 2 0 rl0 200.200.156.1 00:09:7b:8e:90:54 UHLW 8 0 rl0 1200 200.200.157.13 00:09:7b:8e:90:54 UHLW 0 25 rl0 173 200.200.157.14 127.0.0.1 UGHS 0 0 lo0 In A's syslog there appears a message: /kernel: arp: 217.162.157.93 moved from 00:e0:98:77:6c:ba to 00:09:7b:8e:90:54 on rl0 00:09:7b:8e:90:54 probably is the address of the cable modem or some device of the ISP. The connection basically works, but the speed is derived from the cable modem. So copying big files takes as long as downloading them from the internet. Both hosts have 4.6.2-RELEASE. How come the two hosts react differently after a connection between them is established? Why doesn't host A not realize that host B can be reached by a shorter path? Can one manually add a route via an ethernet address? -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020824223001.A596>