Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] IP aliasing problem
Date: Thu, 07 Oct 2010 07:33:38
Message-Id: 3F408658-08E1-4D30-A7DA-4663CFEEC9B3@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] IP aliasing problem by Grant
1 On 6 Oct 2010, at 23:17, Grant wrote:
2
3 >>> ...I have 5 usable IPs from my host and I've defined 2 of them in /etc/conf.d/net like this:
4 >>>
5 >>> config_eth0=(
6 >>> "1.2.3.1 netmask 255.255.255.0"
7 >>> "1.2.3.2 netmask 255.255.255.0"
8 >>> )
9 >>>
10 >>> My apache2 config is not working as expected and I think its due to a
11 >>> networking problem because eth0:1 reports no RX or TX stats:
12 >>>
13 >>> # ifconfig
14 >>> eth0 Link encap:Ethernet HWaddr [removed]
15 >>> inet addr:1.2.3.1 Bcast:[removed] Mask:255.255.255.0
16 >>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
17 >>> RX packets:46047 errors:0 dropped:0 overruns:0 frame:0
18 >>> TX packets:65703 errors:0 dropped:0 overruns:0 carrier:0
19 >>> collisions:0 txqueuelen:1000
20 >>> RX bytes:6131194 (5.8 MiB) TX bytes:82568335 (78.7 MiB)
21 >>> Interrupt:40
22 >>>
23 >>> eth0:1 Link encap:Ethernet HWaddr [removed]
24 >>> inet addr:1.2.3.2 Bcast:[removed] Mask:255.255.255.0
25 >>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
26 >>> Interrupt:40
27 >>
28 > ...
29 > Thank you for taking the time to write Stroller. This has really got
30 > my head spinning. First of all, you're right about the netmask. It
31 > is 255.255.255.248. I didn't have a good understanding of what a
32 > netmask is so I thought it would be smart to change it for a public
33 > message.
34 >
35 > The server is remote and hosted so I don't have any control over the
36 > router or network. I've gone back and forth with the host but they
37 > insist that everything is fine on their end.
38 >
39 > I'm confused because I have in apache2 config:
40 >
41 > <VirtualHost 1.2.3.1:443>
42 > ...
43 > SSLCertificateFile /etc/apache2/ssl/www.example1.com.crt
44 > SSLCertificateKeyFile /etc/apache2/ssl/www.example1.com.key
45 > ...
46
47 Suggest you first establish you can ping *both* IPs.
48
49 Stroller.

Replies

Subject Author
Re: [gentoo-user] IP aliasing problem Grant <emailgrant@×××××.com>