IP Address not working?
I have a Freebsd box that has had just one IP address for a long time. I am trying to add another to run a website with it's own IP, ssl cert, etc. I've added IP addresses to boxes before without problem, but either this box has a problem, or I've forgotten something important (probably the latter.) on# uname -a FreeBSD on.identry.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 I have the new address (66.111.0.251) configured: on# ifconfig em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4 ether 00:0e:0c:ea:af:c2 inet 66.111.0.250 netmask 0xffc0 broadcast 66.111.0.255 inet 66.111.0.251 netmask 0x broadcast 66.111.0.251 media: Ethernet autoselect (100baseTX full-duplex) status: active The interface responds to pings: $ ping 66.111.0.251 PING 66.111.0.251 (66.111.0.251): 56 data bytes 64 bytes from 66.111.0.251: icmp_seq=0 ttl=20 time=16.474 ms And IFF I am logged into the server I can access the website using lynx, or by using telnet to access the page: on# telnet test.gradedstamps.com 80 Trying 66.111.0.251... Connected to test.gradedstamps.com. Escape character is '^]'. GET /test.html HTTP/1.1 host: test.gradedstamps.com HTTP/1.1 200 OK Date: Fri, 25 Mar 2011 12:25:40 GMT Server: Apache/2.2.14 (FreeBSD) mod_ssl/2.2.14 OpenSSL/0.9.8e PHP/5.2.12 with Suhosin-Patch Last-Modified: Fri, 25 Mar 2011 12:17:16 GMT ETag: 439155-63-49f4d93188b00 Accept-Ranges: bytes Content-Length: 99 Content-Type: text/html html head titleTest Page/title /head body Hello, world /body /html However, I cannot access the website from outside the box, even with PF turned off: ~ 510 $ telnet test.gradedstamps.com 80 Trying 66.111.0.251... telnet: connect to address 66.111.0.251: Connection refused telnet: Unable to connect to remote host ~ 511 $ I'm stumped. Can anyone give me a clue where to look next? Thanks: John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: IP Address not working?
On 25/03/2011 12:29, John Almberg wrote: I have a Freebsd box that has had just one IP address for a long time. I am trying to add another to run a website with it's own IP, ssl cert, etc. I've added IP addresses to boxes before without problem, but either this box has a problem, or I've forgotten something important (probably the latter.) try restarting your routing deamon, /etc/rc.d/routing restart if changing the only ip on a system remotely you can combine.. /etc/rc.d/netif restart /etc/rc.d/routing restart Paul. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: IP Address not working?
Well, I figured it out. There was another machine configured with the same address. I was pinging another machine, in other words. The address is in my address range, but it isn't one of my two machines in the rack, so I'm working with the colo guys to figure out what is sitting on my address. A nice way to waste a morning! Thanks for your help, guys. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: IP Address not working?
inet 66.111.0.250 netmask 0xffc0 broadcast 66.111.0.255 inet 66.111.0.251 netmask 0x broadcast 66.111.0.251 That netmask should probably be 0xffc0, same as for .250, but ... However, I cannot access the website from outside the box, even with PF turned off: As I recall, on 7.x you still need to to do arp -s so other hosts on the LAN can find it. R's, John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: IP Address not working?
John Levine jo...@iecc.com writes: inet 66.111.0.250 netmask 0xffc0 broadcast 66.111.0.255 inet 66.111.0.251 netmask 0x broadcast 66.111.0.251 That netmask should probably be 0xffc0, same as for .250, but ... No. ,[ man ifconfig ] | alias Establish an additional network address for this interface. | [...] If the address is on the same subnet as the first | network address for this interface, a non-conflicting | netmask must be given. Usually 0x is most | appropriate. ` -- Frédéric Perrin -- http://tar-jx.bz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org