"ip add add" doesn't work when done in startup script, x86
|Reported by:||jaarli@…||Owned by:||somebody|
|Keywords:||x86, startup script, ip addr||Cc:|
I'm using DD-WRT v24 RC-6 (01/02/08) std - build 8743 in x86...
Following and adapting instructions from here http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration doesn't work anymore... eth0 is my WAN-adapter
In startup script I use this line: "ip addr add 192.168.0.10/24 dev eth0 brd +" but in SSH "ip addr show" gives only this to eth0:
"7: eth0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,10000> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:1b:21:04:56:21 brd ff:ff:ff:ff:ff:ff inet 184.108.40.206/19 brd 220.127.116.11 scope global eth0 inet6 fe80::21b:21ff:fe04:5621/64 scope link
valid_lft forever preferred_lft forever"
Also "route" doesn't show 192.168.0.0 in destination... So somehow DD-WRT loses the effect of IP command in startup, maybe the DHCP from WAN "replaces" it? (guessing possible causes).
However, if I run same "ip addr add 192.168.0.10/24 dev eth0 brd +" in firewall, it works... But This shouldn't be that way, as router should make and keep the 192.168.0.10 on eth0 allways there, independant of "firewall"/interface up -rules...
Also it works when I run that command by hand in SSH...
"route" gives additional destination of 192.168.0.0, and "ip addr show" gives this additional line for eth0: "inet 192.168.0.10/24 brd 192.168.0.255 scope global eth0"
Again I don't know what exact build it stopped to work as I didn't need to access my modem settings for pretty long perioid of time, but AFAIK this is pretty fresh flaw... So this same stuff worked in earlier builds...
Change History (7)
comment:2 Changed 5 years ago by BrainSlayer
- Resolution set to invalid
- Status changed from new to closed
comment:3 Changed 5 years ago by jaarli@…
- Resolution invalid deleted
- Status changed from closed to reopened
comment:4 Changed 5 years ago by jaarli@…
- Resolution set to fixed
- Status changed from reopened to closed