Re: Networking problem UPDATED
On Thu, 4 Mar 2004, Steve Ireland wrote: The two interfaces are on different subnets: 192.168.0.0/24 and 192.168.10.0/24. You need to either add a static route between them or change their netmasks to at least a /21. Huh? They _must_ be on different subnets. You can't route one subnet across multiple network interfaces. Besides, a router always knows how to route packets between its own directly-attached networks, no additional routes are necessary. The problem here is that a route needs to be added for 192.168.10.0/24 - 192.168.0.100 in the upstream router(s), since the upstream router(s) do not currently know to send any packets destined for 192.168.10.0/24 to 192.168.0.100 for delivery. The upstream router is currently sending these packets to its own default gateway, which is likely even further upstream. IP routers aren't mind-readers, you have to tell them exactly where to send packets, but usually that is very simple. Running a routing protocol (such as RIP) on both the FreeBSD box in question and the upstream router(s) would automatically add the same route for you, but that is unnecessary in such a simple network configuration. -- Chris Dillon - cdillon(at)wolves.k12.mo.us FreeBSD: The fastest, most open, and most stable OS on the planet - Available for IA32, IA64, AMD64, PC98, Alpha, and UltraSPARC architectures - PowerPC, ARM, MIPS, and S/390 under development - http://www.freebsd.org Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Networking problem UPDATED
I have a friend who can not get his FreeBSD 5.2 server to act as a gateway, from the internal network we can ping the external network card, but no further. From the server we can ping the entire world. I had him bring it over and set up my server(FreeBSD 4.8R as the gateway) all my clients can use my FreeBSD server fine, so I do not think the problem is in it, so I now have: ISPMy Server---his Server---laptop My Server to ISP is a dynamic IP (ppp dialup) My server internal network is 192.168.0.1 His server to my server is connected to my servers hub and his server uses ip 192.168.0.100 His server to my laptop is connected with a cross over cable, his server is 192.168.10.1 My Laptop is 192.168.10.42 From the laptop I can ping as far as the external nic on his server (192.168.0.100). From his server I can ping the world. I have googled, looked at the mailing list, but can not find the problem :o( I have re installed the server, incase he goofed up, same problem, I have swapped the external network card, same problem. His Server rc.conf: defaultrouter=192.168.0.1 gateway_enable=YES hostname=osire.home.lan ifconfig_fxp0=inet 192.168.0.100 netmask 255.255.255.0 #external nic ifconfig_rl0=inet 192.168.10.1 netmask 255.255.255.0 #internal nic inetd_enable=YES saver=logo sshd_enable=YES osire# netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.0.1UGS 00 fxp0 127.0.0.1 127.0.0.1 UH 0 49lo0 192.168.0 link#1 UC 00 fxp0 192.168.0.100:02:b3:99:46:d0 UHLW13 fxp0 1043 192.168.0.254 00:e0:29:9c:ea:72 UHLW0 165 fxp0 1039 192.168.10 link#2 UC 00rl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64link#1UC fxp0 fe80::2a0:c9ff:fe8e:3980%fxp0 00:a0:c9:8e:39:80 UHL lo0 fe80::%rl0/64 link#2UC rl0 fe80::240:f4ff:fe3c:9deb%rl0 00:40:f4:3c:9d:eb UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4UHL lo0 ff01::/32 ::1 U lo0 ff02::%fxp0/32link#1UC fxp0 ff02::%rl0/32 link#2UC rl0 ff02::%lo0/32 ::1 UC lo0 osire# There is no firewall or natd running on his server My Server rc.conf: Generated by Katinka 16-07-03 amd_enable=NO gateway_enable=YES hostname=webserver.kaqelectronics.dyndns.org ifconfig_fxp0=inet 192.168.0.1 netmask 255.255.255.0 ifconfig_rl0=media 10baseT/UTP up ipv6_enable=NO kern_securelevel_enable=NO portmap_enable=YES nfs_server_enable=YES mountd_flags=-r inetd_enable=YES nfs_reserved_port_only=YES saver=logo scrnmap=NO sendmail_enable=YES sshd_enable=YES tcp_extensions=YES usbd_enable=YES firewall_enable=YES firewall_type=OPEN named_enable=YES named_flags=/etc/namedb/named.conf sasl_saslauthd_enabled=YES ppp_enable=YES ppp_profile=dialup ppp_mode=ddial webserver# netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default203.30.44.55 UGSc 1532442 tun0 127.0.0.1 127.0.0.1 UH 0 7361lo0 192.168.0 link#2 UC 50 fxp0 192.168.0.6link#2 UHLW1 4155 fxp0 192.168.0.10 00:e0:18:b0:53:00 UHLW2 165561 fxp0 944 192.168.0.100 00:a0:c9:8e:39:80 UHLW13 fxp0 845 192.168.0.254 00:e0:29:9c:ea:72 UHLW2 569747 fxp0 841 192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 2 2578 fxp0 203.30.44.55 202.89.160.14 UH 160 tun0 webserver# I am out of ideas Regards, Kat. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Networking problem UPDATED
- Original Message - From: Kathy Quinlan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 19:46 Subject: Networking problem UPDATED I have a friend who can not get his FreeBSD 5.2 server to act as a gateway, from the internal network we can ping the external network card, but no further. From the server we can ping the entire world. I had him bring it over and set up my server(FreeBSD 4.8R as the gateway) all my clients can use my FreeBSD server fine, so I do not think the problem is in it, so I now have: ISPMy Server---his Server---laptop My Server to ISP is a dynamic IP (ppp dialup) My server internal network is 192.168.0.1 His server to my server is connected to my servers hub and his server uses ip 192.168.0.100 His server to my laptop is connected with a cross over cable, his server is 192.168.10.1 My Laptop is 192.168.10.42 From the laptop I can ping as far as the external nic on his server (192.168.0.100). From his server I can ping the world. I have googled, looked at the mailing list, but can not find the problem :o( I have re installed the server, incase he goofed up, same problem, I have swapped the external network card, same problem. His Server rc.conf: defaultrouter=192.168.0.1 gateway_enable=YES hostname=osire.home.lan ifconfig_fxp0=inet 192.168.0.100 netmask 255.255.255.0 #external nic ifconfig_rl0=inet 192.168.10.1 netmask 255.255.255.0 #internal nic inetd_enable=YES saver=logo sshd_enable=YES osire# netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.0.1UGS 00 fxp0 127.0.0.1 127.0.0.1 UH 0 49lo0 192.168.0 link#1 UC 00 fxp0 192.168.0.100:02:b3:99:46:d0 UHLW13 fxp0 1043 192.168.0.254 00:e0:29:9c:ea:72 UHLW0 165 fxp0 1039 192.168.10 link#2 UC 00rl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64link#1UC fxp0 fe80::2a0:c9ff:fe8e:3980%fxp0 00:a0:c9:8e:39:80 UHL lo0 fe80::%rl0/64 link#2UC rl0 fe80::240:f4ff:fe3c:9deb%rl0 00:40:f4:3c:9d:eb UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4UHL lo0 ff01::/32 ::1 U lo0 ff02::%fxp0/32link#1UC fxp0 ff02::%rl0/32 link#2UC rl0 ff02::%lo0/32 ::1 UC lo0 osire# There is no firewall or natd running on his server My Server rc.conf: Generated by Katinka 16-07-03 amd_enable=NO gateway_enable=YES hostname=webserver.kaqelectronics.dyndns.org ifconfig_fxp0=inet 192.168.0.1 netmask 255.255.255.0 ifconfig_rl0=media 10baseT/UTP up ipv6_enable=NO kern_securelevel_enable=NO portmap_enable=YES nfs_server_enable=YES mountd_flags=-r inetd_enable=YES nfs_reserved_port_only=YES saver=logo scrnmap=NO sendmail_enable=YES sshd_enable=YES tcp_extensions=YES usbd_enable=YES firewall_enable=YES firewall_type=OPEN named_enable=YES named_flags=/etc/namedb/named.conf sasl_saslauthd_enabled=YES ppp_enable=YES ppp_profile=dialup ppp_mode=ddial webserver# netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default203.30.44.55 UGSc 1532442 tun0 127.0.0.1 127.0.0.1 UH 0 7361lo0 192.168.0 link#2 UC 50 fxp0 192.168.0.6link#2 UHLW1 4155 fxp0 192.168.0.10 00:e0:18:b0:53:00 UHLW2 165561 fxp0 944 192.168.0.100 00:a0:c9:8e:39:80 UHLW13 fxp0 845 192.168.0.254 00:e0:29:9c:ea:72 UHLW2 569747 fxp0 841 192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 2 2578 fxp0 203.30.44.55 202.89.160.14 UH 160 tun0 webserver# I am out of ideas Regards, Kat. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, The two interfaces are on different subnets: 192.168.0.0/24 and 192.168.10.0/24. You need to either add
Re: Networking problem UPDATED - correction
That should have been /20 not /21. Sorry, Steve - Original Message - From: Kathy Quinlan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 19:46 Subject: Networking problem UPDATED I have a friend who can not get his FreeBSD 5.2 server to act as a gateway, from the internal network we can ping the external network card, but no further. From the server we can ping the entire world. I had him bring it over and set up my server(FreeBSD 4.8R as the gateway) all my clients can use my FreeBSD server fine, so I do not think the problem is in it, so I now have: ISPMy Server---his Server---laptop My Server to ISP is a dynamic IP (ppp dialup) My server internal network is 192.168.0.1 His server to my server is connected to my servers hub and his server uses ip 192.168.0.100 His server to my laptop is connected with a cross over cable, his server is 192.168.10.1 My Laptop is 192.168.10.42 From the laptop I can ping as far as the external nic on his server (192.168.0.100). From his server I can ping the world. I have googled, looked at the mailing list, but can not find the problem :o( I have re installed the server, incase he goofed up, same problem, I have swapped the external network card, same problem. His Server rc.conf: defaultrouter=192.168.0.1 gateway_enable=YES hostname=osire.home.lan ifconfig_fxp0=inet 192.168.0.100 netmask 255.255.255.0 #external nic ifconfig_rl0=inet 192.168.10.1 netmask 255.255.255.0 #internal nic inetd_enable=YES saver=logo sshd_enable=YES osire# netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.0.1UGS 00 fxp0 127.0.0.1 127.0.0.1 UH 0 49lo0 192.168.0 link#1 UC 00 fxp0 192.168.0.100:02:b3:99:46:d0 UHLW13 fxp0 1043 192.168.0.254 00:e0:29:9c:ea:72 UHLW0 165 fxp0 1039 192.168.10 link#2 UC 00rl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64link#1UC fxp0 fe80::2a0:c9ff:fe8e:3980%fxp0 00:a0:c9:8e:39:80 UHL lo0 fe80::%rl0/64 link#2UC rl0 fe80::240:f4ff:fe3c:9deb%rl0 00:40:f4:3c:9d:eb UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4UHL lo0 ff01::/32 ::1 U lo0 ff02::%fxp0/32link#1UC fxp0 ff02::%rl0/32 link#2UC rl0 ff02::%lo0/32 ::1 UC lo0 osire# There is no firewall or natd running on his server My Server rc.conf: Generated by Katinka 16-07-03 amd_enable=NO gateway_enable=YES hostname=webserver.kaqelectronics.dyndns.org ifconfig_fxp0=inet 192.168.0.1 netmask 255.255.255.0 ifconfig_rl0=media 10baseT/UTP up ipv6_enable=NO kern_securelevel_enable=NO portmap_enable=YES nfs_server_enable=YES mountd_flags=-r inetd_enable=YES nfs_reserved_port_only=YES saver=logo scrnmap=NO sendmail_enable=YES sshd_enable=YES tcp_extensions=YES usbd_enable=YES firewall_enable=YES firewall_type=OPEN named_enable=YES named_flags=/etc/namedb/named.conf sasl_saslauthd_enabled=YES ppp_enable=YES ppp_profile=dialup ppp_mode=ddial webserver# netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default203.30.44.55 UGSc 1532442 tun0 127.0.0.1 127.0.0.1 UH 0 7361lo0 192.168.0 link#2 UC 50 fxp0 192.168.0.6link#2 UHLW1 4155 fxp0 192.168.0.10 00:e0:18:b0:53:00 UHLW2 165561 fxp0 944 192.168.0.100 00:a0:c9:8e:39:80 UHLW13 fxp0 845 192.168.0.254 00:e0:29:9c:ea:72 UHLW2 569747 fxp0 841 192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 2 2578 fxp0 203.30.44.55 202.89.160.14 UH 160 tun0 webserver# I am out of ideas Regards, Kat. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, The two interfaces are on different subnets: 192.168.0.0/24