Hi denjolras,
denjolras wrote:exec("/sbin/ifconfig eth0:0 192.168.0.133 netmask 255.255.255.0 up", $out, $ret)
No iit is not enough
And I advice not to edit these files in /etc/init.d but use the cron boot feature with a custom script !
As you have two ethernet ports eth0 (LAN1) and eth1 (LAN2), we will try to set one for each Inthernet provider.
So disable any ethernet bonding in lan setup menu and open a shell terminal
I assume your 2d ISP router has this address 192.168.0.1 then do
- Code: Select all
/sbin/ifconfig eth1 192.168.0.133 netmask 255.255.255.0 up
/sbin/route del default gw 0.0.0.0 dev eth1
/sbin/route add default gw 192.168.0.1 dev eth1
echo nameserver 192.168.0.1 >> /etc/resolv.conf
(be careful use really '>>')
Check if you see the NAS on your 2d LAN and post
- Code: Select all
route