This is the old SliTaz forum - Please use the main forum.slitaz.org

Dual NICs - howto enable?[solved]
  • fopeteslfopetesl March 2010
    I have two NICs on the motherboard:
    Using System Tools -> Configure Networking I try to set eth0 as Static IP and Start it.
    But it doesn't start:
    [code]dummy0 Link encap:Ethernet HWaddr FE:83:94:D5:BE:BA
    BROADCAST NOARP MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    eth0 Link encap:Ethernet HWaddr 00:30:18:A8:41:9A
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:18

    eth1 Link encap:Ethernet HWaddr 00:30:18:A8:41:9B
    inet addr:192.168.2.11 Bcast:192.168.2.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4058 errors:0 dropped:0 overruns:0 frame:0
    TX packets:802 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:988723 (965.5 KiB) TX bytes:99639 (97.3 KiB)
    Interrupt:19 Base address:0x4000[/code]

    I have attempted to edit /etc/network.conf without success.

    I can choose either eth0 or eth1 to connect with success but not both.
    In e.g. Ubuntu /etc/network/interfaces does it differently _but_ it works.
  • fopeteslfopetesl March 2010
    Anyone??
  • kultexkultex March 2010
    I tried it on my Kino Atom - with the new cooking (and I think also on stable) no problem , when I do it on the console

    http://homepage.smc.edu/morgan_david/vpn/assignments/ifroute-assgt.htm
  • fopeteslfopetesl March 2010
    OK, kultex looks just fine. So where to put 'ifcong' & 'route' so they run on startup?
    As I suggested editing network.conf just doesn't work. :(
    user/home/.xinitrc maybe?
  • kultexkultex March 2010
    if you look in /etc/init.d/network.sh you will se, that its not previed to set up a second nic - if you are able to do it, you could change the script (I wouldnt do it)
    So the best is to make a scipt and open it with autostart of openbox
    The autostart script is located at ~/.config/openbox/autostart.sh. If that file does not exist, then the system-wide default script, located at /etc/xdg/openbox/autostart.sh, is run instead.
    Take care of permission issue

    I think you could execute it directly in the autosart.sh
    eg: (sleep 3s && application_command) &

    but then you must take /etc/xdg/openbox/autostart.sh
  • erniaernia March 2010
    /etc/init.d/local.sh ?
    it would works without X too
  • kultexkultex March 2010
    thats better - her is the handbook entry http://www.slitaz.org/en/doc/handbook/system-admin.html#local.sh
  • fopeteslfopetesl March 2010
    Thanks guys.
    Works a treat in local.sh :-))
    :-))

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social