Adding IP's ifconfig problems
I have a 5.2.1 server which I need to add IP's to. When the provider assigned me the IP's they also said use the netmask 255.255.255.240. I added the IP's to my rc.conf as you can see below but they do not show up in my ifconfig. MY rc.conf: # -- sysinstall generated deltas -- # Wed Nov 3 09:22:52 2004 # Created: Wed Nov 3 09:22:52 2004 # 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. defaultrouter=208.53.17X.1 hostname=warped.xconch.net ifconfig_fxp0=inet 208.53.17X.8 netmask 255.255.255.0 linux_enable=YES sshd_enable=YES usbd_enable=YES inetd_enable=YES pureftpd_enable=YES ifconfig_fxp0_alias0=inet 208.53.17X.2 netmask 255.255.255.240 ifconfig_fxp0_alias1=inet 208.53.17X.3 netmask 255.255.255.240 ifconfig_fxp0_alias2=inet 208.53.17X.4 netmask 255.255.255.240 ifconfig_fxp0_alias3=inet 208.53.17X.5 netmask 255.255.255.240 ifconfig_fxp0_alias4=inet 208.53.17X.6 netmask 255.255.255.240 ifconfig_fxp0_alias5=inet 208.53.17X.7 netmask 255.255.255.240 ifconfig_fxp0_alias6=inet 208.53.17X.8 netmask 255.255.255.240 ifconfig_fxp0_alias7=inet 208.53.17X.9 netmask 255.255.255.240 ifconfig_fxp0_alias8=inet 208.53.17X.10 netmask 255.255.255.240 ifconfig_fxp0_alias9=inet 208.53.17X.11 netmask 255.255.255.240 ifconfig_fxp0_alias10=inet 208.53.17X.12 netmask 255.255.255.240 ifconfig_fxp0_alias11=inet 208.53.17X.13 netmask 255.255.255.240 ifconfig_fxp0_alias12=inet 208.53.17X.14 netmask 255.255.255.240 Here is my ifconfig: [7:58]([EMAIL PROTECTED])[/etc] ifconfig fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 208.53.17X.8 netmask 0xff00 broadcast 208.53.17X.255 inet6 fe80::220:edff:fe27:63aa%fxp0 prefixlen 64 scopeid 0x1 inet 208.53.17X.2 netmask 0xfff0 broadcast 208.53.17X.15 ether 00:20:ed:27:63:aa media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 Only the first IP 208.53.17X.2 showed up in the ifconfig. That tells me there is something wrong with the following line but I can not find anything wrong with the line. If I try and ping the next IP from the box locally I get the following: [7:58]([EMAIL PROTECTED])[/etc] ping 208.53.17X.3 PING 208.53.17X.3 (208.53.17X.3): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C Why don't my IP's show up in ifconfig? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding IP's ifconfig problems
ifconfig_fxp0=inet 208.53.17X.8 netmask 255.255.255.0 ^ ifconfig_fxp0=inet 208.53.17X.8 netmask 255.255.255.240 ifconfig_fxp0_alias0=inet 208.53.17X.2 netmask 255.255.255.240 ^^ Netmask should be 255.255.255.255 on a alias if it is from the same network as the primary address. ifconfig_fxp0_alias6=inet 208.53.17X.8 netmask 255.255.255.240 ^^^ You already assigned this address?!?!?! -- Chris * ** This email has been scanned by Cenergy Networks for viruses and ** ** spam. As part of our ongoing drive to ensure reliable and ** ** secure communications, Cenergy Networks guarantees this message ** ** to be clean of any viruses or spam. Should you not be satisfied** ** with the content of this email, please let us know by emailing ** ** us at [EMAIL PROTECTED] ** * ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding IP's ifconfig problems
I should have just left the IP's in untouched. I know that looks suspicious but they are two different IP's one is lets say 178 and the other 179, they arent used twice. But good catch. From: Chris Knipe [EMAIL PROTECTED] Reply-To: Chris Knipe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Adding IP's ifconfig problems Date: Fri, 5 Nov 2004 10:18:30 +0200 ifconfig_fxp0=inet 208.53.17X.8 netmask 255.255.255.0 ^ ifconfig_fxp0=inet 208.53.17X.8 netmask 255.255.255.240 ifconfig_fxp0_alias0=inet 208.53.17X.2 netmask 255.255.255.240 ^^ Netmask should be 255.255.255.255 on a alias if it is from the same network as the primary address. ifconfig_fxp0_alias6=inet 208.53.17X.8 netmask 255.255.255.240 ^^^ You already assigned this address?!?!?! -- Chris * ** This email has been scanned by Cenergy Networks for viruses and ** ** spam. As part of our ongoing drive to ensure reliable and ** ** secure communications, Cenergy Networks guarantees this message ** ** to be clean of any viruses or spam. Should you not be satisfied** ** with the content of this email, please let us know by emailing ** ** us at [EMAIL PROTECTED] ** * ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding IP's ifconfig problems
On Fri, Nov 05, 2004 at 03:11:57AM -0500, GRF . wrote: I have a 5.2.1 server which I need to add IP's to. When the provider assigned me the IP's they also said use the netmask 255.255.255.240. I added the IP's to my rc.conf as you can see below but they do not show up in my ifconfig. MY rc.conf: # -- sysinstall generated deltas -- # Wed Nov 3 09:22:52 2004 # Created: Wed Nov 3 09:22:52 2004 # 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. defaultrouter=208.53.17X.1 hostname=warped.xconch.net ifconfig_fxp0=inet 208.53.17X.8 netmask 255.255.255.0 linux_enable=YES sshd_enable=YES usbd_enable=YES inetd_enable=YES pureftpd_enable=YES ifconfig_fxp0_alias0=inet 208.53.17X.2 netmask 255.255.255.240 ifconfig_fxp0_alias1=inet 208.53.17X.3 netmask 255.255.255.240 ifconfig_fxp0_alias2=inet 208.53.17X.4 netmask 255.255.255.240 ifconfig_fxp0_alias3=inet 208.53.17X.5 netmask 255.255.255.240 ifconfig_fxp0_alias4=inet 208.53.17X.6 netmask 255.255.255.240 ifconfig_fxp0_alias5=inet 208.53.17X.7 netmask 255.255.255.240 ifconfig_fxp0_alias6=inet 208.53.17X.8 netmask 255.255.255.240 ifconfig_fxp0_alias7=inet 208.53.17X.9 netmask 255.255.255.240 ifconfig_fxp0_alias8=inet 208.53.17X.10 netmask 255.255.255.240 ifconfig_fxp0_alias9=inet 208.53.17X.11 netmask 255.255.255.240 ifconfig_fxp0_alias10=inet 208.53.17X.12 netmask 255.255.255.240 ifconfig_fxp0_alias11=inet 208.53.17X.13 netmask 255.255.255.240 ifconfig_fxp0_alias12=inet 208.53.17X.14 netmask 255.255.255.240 Classic error. You need to read this part of the ifconfig(8) man page more carefully: alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old 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. ie. only one address (per network) on the interface can have the 'real' netmask. The others (ie all of your aliases) should use 0x or 255.255.255.255. Or to put it another way, the bitwise 'and' of the IP number and the netmask must be different for every address configured on the interface. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgpNSklIQGHFr.pgp Description: PGP signature