[Wolves] IP Aliasing

Simon C. Burke simonb at geek-web.co.uk
Thu Oct 16 10:50:32 UTC 2008


Further to this I also added iptables -L -v output.

----- Original Message -----
From: "Simon C. Burke" <simonb at geek-web.co.uk>
To: "wolves" <wolves at mailman.lug.org.uk>
Sent: Thursday, 16 October, 2008 11:47:31 GMT +00:00 GMT Britain, Ireland, Portugal
Subject: [Wolves] IP Aliasing

Hi all.

I recently moved my mail server to a different box. However whilst changing IP I wanted to add the old one as an IP Alias.

I went through the usual rigmarole of running:

/sbin/ifconfig eth0:0 78.105.102.xx netmask 255.255.248.0

then:

/sbin/route add -host 78.105.102.xx dev eth0:0

Now it shows in ifconfig however nothing will bind to that address

route -en gives:

root at mail:/etc# route -en
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
78.105.102.xx   0.0.0.0         255.255.255.255 UH        0 0          0 eth0
78.105.96.0     0.0.0.0         255.255.248.0   U         0 0          0 eth0
0.0.0.0         78.105.96.1     0.0.0.0         UG        0 0          0 eth0

ifconfig shows:

root at mail:/etc# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:1b:3f:f6:2f
          inet addr:78.105.102.yy  Bcast:78.105.103.255  Mask:255.255.248.0
          inet6 addr: fe80::230:1bff:fe3f:f62f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:255047 errors:0 dropped:0 overruns:0 frame:0
          TX packets:228975 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:211415970 (201.6 MB)  TX bytes:120837517 (115.2 MB)
          Interrupt:16 Base address:0xb000

eth0:0    Link encap:Ethernet  HWaddr 00:30:1b:3f:f6:2f
          inet addr:78.105.102.xx  Bcast:78.105.103.255  Mask:255.255.248.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Base address:0xb000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:793747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:793747 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:301639056 (287.6 MB)  TX bytes:301639056 (287.6 MB)


netstat -n has no mention of that ip either.

A nmap of the ip externally shows its there but with no open ports.

The server is running Ubuntu Server 8.04

Any ideas as to what I am missing here?

I have tried binding a service to that ip by hand but still doesnt show in a netstat, and it is not accessible.

I can however ping the ip locally.

Any helpw ould be greatly appreciated.

iptables currently is set to:

root at mail:/etc# iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  lo     any     anywhere             anywhere
   50  3716 ACCEPT     all  --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:ssh
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:www
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:https
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:smtp
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:pop3
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:imap2
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:ssmtp
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:imaps
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:pop3s
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:7071
    0     0 DROP       all  --  any    any     anywhere             anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 35 packets, 3252 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       icmp --  any    any     anywhere             anywhere

_______________________________________________
Wolves LUG mailing list
Homepage: http://www.wolveslug.org.uk/
Mailing list: Wolves at mailman.lug.org.uk
Mailing list home: https://mailman.lug.org.uk/mailman/listinfo/wolves



More information about the Wolves mailing list