1 |
On Sunday 22 Feb 2015 04:52:34 Walter Dnes wrote: |
2 |
> My DSL router modem is at 192.168.123.254. I have an HDHomerun |
3 |
> network TV tuner that insists on coming up somewhere in the 169.254.X.Y |
4 |
> block. Up until upgrading from 32 to 64 bits, I was able to see a 2nd |
5 |
> eth0 (i.e. eth0:1) using the following /etc/conf.d/net setup... |
6 |
> |
7 |
> config_eth0=" |
8 |
> 192.168.123.251/29 broadcast 192.168.123.255 |
9 |
> 169.254.1.1/16 broadcast 169.254.255.255" |
10 |
|
11 |
Is there a reason you need to define a broadcast if you are using CIDR |
12 |
notation? |
13 |
|
14 |
|
15 |
> routes_eth0=" |
16 |
> default via 192.168.123.254 metric 20 |
17 |
> 192.168.123.248/29 via 192.168.123.254 metric 0 |
18 |
|
19 |
Isn't the above redundant if you have defined an identical default route? |
20 |
|
21 |
> 169.254.0.0/16 via 169.254.1.1 metric 0" |
22 |
|
23 |
|
24 |
|
25 |
> The 2nd interface is no longer being set up. As amatter of fact, it |
26 |
> appears to be totally unavailable. E.g.... |
27 |
> |
28 |
> [d531][root][~] /etc/init.d/net.eth0 stop |
29 |
> * Unmounting network filesystems ... [ |
30 |
> ok ] * Bringing down interface eth0 |
31 |
> [d531][root][~] ifconfig eth0:0 192.168.123.251/29 broadcast |
32 |
> 192.168.123.255 SIOCSIFNETMASK: Cannot assign requested address |
33 |
> [d531][root][~] ifconfig eth0 192.168.123.251/29 broadcast 192.168.123.255 |
34 |
> [d531][root][~] |
35 |
> |
36 |
> So my system doesn't support even the concept of an alias for eth0. |
37 |
> Looking at the ifconfig manpage... |
38 |
|
39 |
Unless you have set up: |
40 |
|
41 |
modules="!iproute2" |
42 |
|
43 |
netifrc will not use ifconfig. |
44 |
|
45 |
> interface |
46 |
> The name of the interface. This is usually a driver name fol- |
47 |
> lowed by a unit number, for example eth0 for the first Ethernet |
48 |
> interface. If your kernel supports alias interfaces, you can |
49 |
> specify them with eth0:0 for the first alias of eth0. You can |
50 |
> use them to assign a second address. To delete an alias inter- |
51 |
> face use ifconfig eth0:0 down. Note: for every scope (i.e. same |
52 |
> net with address/netmask combination) all aliases are deleted, |
53 |
> if you delete the first (primary). |
54 |
> |
55 |
> I see "If your kernel supports alias interfaces". During the |
56 |
> upgrade, I built the kernel from square 1. I already ran into problems |
57 |
> with not enabling FUSE in the new kernel, which killed MTP until I |
58 |
> enabled it. I wouldn't be surprised if I've disabled some kernel |
59 |
> parameter which is required to enable interface aliases. I didn't see |
60 |
> anything obvious in "make menuconfig". A Google search turned up a |
61 |
> gazillion examples of "how to create an alias using ifconfig". That's |
62 |
> not what I want. I want the kernel setting that allows creating alias |
63 |
> interfaces. |
64 |
|
65 |
The kernel option you want is: |
66 |
|
67 |
CONFIG_IP_MULTIPLE_TABLES=y |
68 |
|
69 |
|
70 |
Also, if you want to set up the HDHomerun to do the right thing, i.e. NOT use |
71 |
local-link addresses, then according to Google you could try: |
72 |
|
73 |
“A static IP address can be configured using the following command (the quotes |
74 |
are required as shown): |
75 |
Format: hdhomerun_config <old ip> set /sys/ipaddr "<new ip> <subnet> |
76 |
<gateway>" |
77 |
Example: hdhomerun_config 169.254.34.98 set /sys/ipaddr "10.10.20.43 |
78 |
255.255.255.0 10.10.20.1" |
79 |
|
80 |
The TECH3 can be configured for DHCP operation (default) using the following |
81 |
command: |
82 |
Format: hdhomerun_config <old ip> set /sys/ipaddr dhcp |
83 |
Example: hdhomerun_config 169.254.34.98 set /sys/ipaddr dhcp” |
84 |
|
85 |
|
86 |
I think different variables can be saved in its /sys/boot, including a static |
87 |
IP address, so that they persist over reboots. |
88 |
|
89 |
HTH |
90 |
-- |
91 |
Regards, |
92 |
Mick |