1 |
>>>> ...I have 5 usable IPs from my host and I've defined 2 of them in /etc/conf.d/net like this: |
2 |
>>>> |
3 |
>>>> config_eth0=( |
4 |
>>>> "1.2.3.1 netmask 255.255.255.0" |
5 |
>>>> "1.2.3.2 netmask 255.255.255.0" |
6 |
>>>> ) |
7 |
>>>> |
8 |
>>>> My apache2 config is not working as expected and I think its due to a |
9 |
>>>> networking problem because eth0:1 reports no RX or TX stats: |
10 |
>>>> |
11 |
>>>> # ifconfig |
12 |
>>>> eth0 Link encap:Ethernet HWaddr [removed] |
13 |
>>>> inet addr:1.2.3.1 Bcast:[removed] Mask:255.255.255.0 |
14 |
>>>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
15 |
>>>> RX packets:46047 errors:0 dropped:0 overruns:0 frame:0 |
16 |
>>>> TX packets:65703 errors:0 dropped:0 overruns:0 carrier:0 |
17 |
>>>> collisions:0 txqueuelen:1000 |
18 |
>>>> RX bytes:6131194 (5.8 MiB) TX bytes:82568335 (78.7 MiB) |
19 |
>>>> Interrupt:40 |
20 |
>>>> |
21 |
>>>> eth0:1 Link encap:Ethernet HWaddr [removed] |
22 |
>>>> inet addr:1.2.3.2 Bcast:[removed] Mask:255.255.255.0 |
23 |
>>>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
24 |
>>>> Interrupt:40 |
25 |
>>> |
26 |
>> ... |
27 |
>> Thank you for taking the time to write Stroller. This has really got |
28 |
>> my head spinning. First of all, you're right about the netmask. It |
29 |
>> is 255.255.255.248. I didn't have a good understanding of what a |
30 |
>> netmask is so I thought it would be smart to change it for a public |
31 |
>> message. |
32 |
>> |
33 |
>> The server is remote and hosted so I don't have any control over the |
34 |
>> router or network. I've gone back and forth with the host but they |
35 |
>> insist that everything is fine on their end. |
36 |
>> |
37 |
>> I'm confused because I have in apache2 config: |
38 |
>> |
39 |
>> <VirtualHost 1.2.3.1:443> |
40 |
>> ... |
41 |
>> SSLCertificateFile /etc/apache2/ssl/www.example1.com.crt |
42 |
>> SSLCertificateKeyFile /etc/apache2/ssl/www.example1.com.key |
43 |
>> ... |
44 |
> |
45 |
> Suggest you first establish you can ping *both* IPs. |
46 |
|
47 |
Thanks Stroller. It's working now. I needed to define apache2's |
48 |
ServerName differently for each VirtualHost. Strangely though, I |
49 |
still don't get stats for RX/TX from ifconfig: |
50 |
|
51 |
eth0 Link encap:Ethernet HWaddr [removed] |
52 |
inet addr:1.2.3.1 Bcast:[removed] Mask:255.255.255.248 |
53 |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
54 |
RX packets:923677 errors:0 dropped:0 overruns:0 frame:0 |
55 |
TX packets:1444212 errors:0 dropped:0 overruns:0 carrier:0 |
56 |
collisions:0 txqueuelen:1000 |
57 |
RX bytes:124904402 (119.1 MiB) TX bytes:1880087116 (1.7 GiB) |
58 |
Interrupt:40 |
59 |
|
60 |
eth0:1 Link encap:Ethernet HWaddr [removed] |
61 |
inet addr:1.2.3.2 Bcast:[removed] Mask:255.255.255.248 |
62 |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
63 |
Interrupt:40 |
64 |
|
65 |
- Grant |