From owner-freebsd-questions Tue Jan 2 1: 6:35 2001 From owner-freebsd-questions@FreeBSD.ORG Tue Jan 2 01:06:31 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from lolita.speakeasy.net (lolita.speakeasy.net [216.254.0.13]) by hub.freebsd.org (Postfix) with SMTP id EE4C137B400 for ; Tue, 2 Jan 2001 01:06:30 -0800 (PST) Received: (qmail 9092 invoked from network); 2 Jan 2001 08:59:47 -0000 Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5) by 192.168.0.13 with SMTP; 2 Jan 2001 08:59:47 -0000 Received: (qmail 24325 invoked from network); 2 Jan 2001 09:06:28 -0000 Received: from unknown (HELO Max.B2Pi.com) (216.254.64.187) by gonzo.speakeasy.net with SMTP; 2 Jan 2001 09:06:28 -0000 Message-ID: <14929.39442.148952.282748@Max.B2Pi.com> Date: Tue, 2 Jan 2001 04:06:26 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Brent B.Powers To: "DINKEY,GENE (HP-Loveland,ex1)" Cc: Questions@FreeBSD.org Subject: RE: Networking and forwarding woes In-Reply-To: References: X-Mailer: VM 6.72 under 21.2 (beta34) "Molpe" XEmacs Lucid Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "Gene" == HP-Loveland,ex1 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 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 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX de0: flags=8c43 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 100baseTX 10baseT/UTP 10baseT/UTP lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 faith0: flags=8000 mtu 1500 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 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