Date: Tue, 2 Jan 2001 04:06:26 -0500 (EST) From: Brent B.Powers <powers@b2pi.com> To: "DINKEY,GENE (HP-Loveland,ex1)" <gene_dinkey@hp.com> Cc: Questions@FreeBSD.org Subject: RE: Networking and forwarding woes Message-ID: <14929.39442.148952.282748@Max.B2Pi.com> In-Reply-To: <F341E03C8ED6D311805E00902761278C531523@xfc04.fc.hp.com> References: <F341E03C8ED6D311805E00902761278C531523@xfc04.fc.hp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Gene" == HP-Loveland,ex1 <DINKEY> writes: Gene> Are they both configured with ip addresses? Are you using Gene> natd? The output from ifconfig -a would be useful as well. A fair point (sorry :) ). Below I've got ifconfig, routing tables arp (null), and pings of all three interfaces on the machine. Note that there _is_ no default route, in fact, none of these things even had cables attached at the time I did this. Regarding natd, I'd prefer not to use it (it doesn't make sense for this machine), but I'm willing to give up and use it if required. I just verified that results are the same whether or not natd_enable is set. I'm pretty sure I've got a routing problem, but I've been unable to come up with the correct incantation to fix this. Problem summary: To take one step at a time, I have disconnected all cables from a particular machine with two NIC's. I am unable to ping both NIC's, even though both have ip's assigned. The eventual goal is to get this machine to be a gateway/firewall between the static IP's that I have and the rest of the world. My static IP's run from 185 to 192. Cheers ## ifconfig, netstat -rn, arp, and pings follow (GW2)/root[1]#ifconfig -a rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet xxx.xxx.xxx.192 netmask 0xffffff00 broadcast xxx.xxx.xxx.255 ether 00:50:bf:1c:46:b0 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> de0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500 inet xxx.xxx.xxx.188 netmask 0xffffff00 broadcast xxx.xxx.xxx.255 ether 00:40:05:41:e0:13 media: autoselect supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 faith0: flags=8000<MULTICAST> mtu 1500 gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 (GW2)/root[2]#netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 10 lo0 xxx.xxx.xxx link#2 UC 0 0 de0 => (GW2)/root[3]#arp -a (GW2)/root[4]#ping -c 1 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.237 ms --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.237/0.237/0.237/0.000 ms (GW2)/root[5]#ping -c 1 xxx.xxx.xxx.188 PING xxx.xxx.xxx.188 (xxx.xxx.xxx.188): 56 data bytes 64 bytes from xxx.xxx.xxx.188: icmp_seq=0 ttl=255 time=0.227 ms --- xxx.xxx.xxx.188 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.227/0.227/0.227/0.000 ms (GW2)/root[6]#ping -c 1 xxx.xxx.xxx.192 PING xxx.xxx.xxx.192 (xxx.xxx.xxx.192): 56 data bytes --- xxx.xxx.xxx.192 ping statistics --- 1 packets transmitted, 0 packets received, 100% packet loss (GW2)/root[7]# rc.conf: #!/bin/sh # -*- Mode: ksh -*- # File: $RCSfile: rc.conf,v $ # Version: $Revision: 1.2 $ # Date: $Date: 2000/12/31 02:19:15 $ # $Id: rc.conf,v 1.2 2000/12/31 02:19:15 root Exp root $ # # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. linux_enable="YES" sendmail_enable="NO" saver="logo" keyrate="fast" hostname="GW2" gateway_enable="YES" # defaultrouter="xxx.xxx.xxx.1" sshd_enable="YES" inetd_enable="YES" network_interfaces="lo0 de0 rl0" # route_deflt="default xxx.xxx.xxx.1 -interface xxx.xxx.xxx.192" # static_routes="deflt" ifconfig_rl0="inet xxx.xxx.xxx.192 netmask 255.255.255.0" ifconfig_de0="inet xxx.xxx.xxx.188 netmask 255.255.255.0" # natd_enable="YES" natd_interface="xxx.xxx.xxx.192" natd_flags="-config /etc/natd.conf" firewall_enable="YES" firewall_type="open" keymap="us.pc-ctrl" ## end of rc.conf 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?14929.39442.148952.282748>