Prev: Ephemeral ports
Next: Gasping for air
From: Jim on 20 Feb 2010 04:34 This is probably not actualy a FreeBSD issue, but I'd appreciate some ideas. I've got a FreeBSD 6.2 box with two ethernet cards in it - dc0 and re0. The machine basically acts as my internet gateway and does mail, news, firewalling, that sort of thing. re0 has a static ip address of 192.168.1.1 and is the NIC for the internal network (mostly Macs). dc0 gets its IP address via DHCP from a BT Business Hub 2700HGV ADSL router. Here's where it starts to get a bt strange... The Business Hub is set to issue DHCP in the range 192.168.2.2 to 192.168.2.10 - in fact there will only be a single device connected to it. The router itself is at 192.168.2.1 However, when the FreeBSD machine gets its IP, it's getting the WAN IP address (212.159.71.78) and not 192.168.2.2 as I would expect. /etc/rc.conf has the line ifconfig_dc0="DHCP" and that's the only reference to dc0. If I connect another machine (an OS X PowerBook) and get an address via DHCP I get a 192.168.2.x address as expected. Now, I know I could just give dc0 a static IP but I run the 2700 in DMZ as it gives me a lot more flexibility if I do all the firewalling via FreeBSD, and the 2700 will only DMZ to a machine that gets its IP via DHCP...kind of odd but that's BT for you. Any ideas? Jim -- "Microsoft admitted its Vista operating system was a 'less good product' in what IT experts have described as the most ambitious understatement since the captain of the Titanic reported some slightly damp tablecloths." http://www.thedailymash.co.uk/
From: Jim on 20 Feb 2010 04:40 Jim <jim(a)magrathea.plus.com> wrote: <snip> Output from ifconfig: [jim(a)wotan] ~ >ifconfig dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet 212.159.71.78 netmask 0xfffffffc broadcast 212.159.71.79 ether 00:30:05:52:1b:d5 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:06:4f:68:5b:32 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 and rc.conf in full: [jim(a)wotan] ~ >cat /etc/rc.conf # -- sysinstall generated deltas -- # Fri Feb 9 17:34:51 2007 # Created: Fri Feb 9 17:34:51 2007 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. gateway_enable="YES" keymap="uk.iso" update_motd="NO" inetd_enable="YES" linux_enable="YES" moused_enable="YES" sshd_enable="YES" usbd_enable="YES" local_startup="/usr/local/etc/rc.d" proftpd_enable="YES" samba_enable="YES" apache22_enable="YES" dovecot_enable="YES" # configure Network Address Translation natd_enable="YES" natd_interface="dc0" natd_flags="-m -f /etc/natd.conf" # Enable and confirgure the Postfix mail system postfix_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # Enable and configure the firewall firewall_enable="YES" firewall_script="/etc/fwrules" ipmon_enable="YES" ipmon_flags="-Ds" # Configure network interfaces defaultrouter="192.168.2.1" ifconfig_re0="inet 192.168.1.1 netmask 255.255.255.0" hostname="wotan.magrathea.local" named_enable="YES" arpproxy_all="YES" # -- sysinstall generated deltas -- # Thu Feb 18 20:29:49 2010 ifconfig_dc0="DHCP" hostname="wotan.magrathea.local" Jim -- "Microsoft admitted its Vista operating system was a 'less good product' in what IT experts have described as the most ambitious understatement since the captain of the Titanic reported some slightly damp tablecloths." http://www.thedailymash.co.uk/
From: Jim on 20 Feb 2010 04:57 Jim <jim(a)magrathea.plus.com> wrote: <snip> Never mind, foud it - the router was passing on the DHCP request to the upstream provider. Turn out you can toggle that. Jim -- "Microsoft admitted its Vista operating system was a 'less good product' in what IT experts have described as the most ambitious understatement since the captain of the Titanic reported some slightly damp tablecloths." http://www.thedailymash.co.uk/
|
Pages: 1 Prev: Ephemeral ports Next: Gasping for air |