1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ip addr

Discussion in 'Tarifa Firmware' started by seb16, Sep 10, 2007.

  1. seb16

    seb16 LI Guru Member

    I would have 2 questions:
    Shortened one:
    ~ # ip addr add dev vlan1
    -sh: ip: not found
    Is it possible to have such feature with Tarifa.

    Now full long question:
    I have been trying to have my routeur (WRT54GL) to work with tv decoder from my isp provider without using a switch but only my router.
    With the basic configuration the decoder would complain when linked to the lan (I guess it checks it is directly linked to the modem).
    That's why I am messing around with the firmwares and found Tarifa which looks more user friendly than openwrt that I tried.

    Anyway I have my router ( that has wan linked with my modem (bridged with ip and which connects through ppoe to my isp.
    I plugged my decoder to case 4 of the lan (which is port 0 on WRT54GL) and put this port into the same vlan containing the wan (port 4), by doing this:
    nvram set vlan1ports="0 4 5"
    and removing it from vlan0ports.
    And I have a pc connected to one of the lan available port (1 or 2 or 3) with IP
    Everything is working fine, the decoder works, I have access to inet from my pc (

    Now the tv decoder has a nice feature : mediacenter, which means you can share datas from your pc to the decoder. You run an http server on port 26180 from your pc and the decoder is supposed to get the link between the two (you can indicate ip address of your router from the decoder interface, so I put there).
    I added 26180 to the Games/Apps ports, and I wanted to add a route to redirects traffic to my pc
    I wanted to assign an ip to the vlan1 by doing this :
    ip addr add dev vlan1

    And then I could have done the redirect this way :
    iptables -I PREROUTING -t nat -d -j DNAT --to-destination
    And then finally put in the decoder interface (instead of originally)

    The problem is that there is no ip command in Tarifa. Is there a way to configure that through the web interface ?

    Am I missing something ? Is there an easier way to proceed ?

  2. mstombs

    mstombs Network Guru Member


    ip addr add dev vlan1


    ifconfig vlan1:0 netmask

    which assigns a secondary IP address (alias) to the WAN port - just an alternative linux command that I know works with Hyperwrt Thibor and Tomato at least.





    to check the effect of this.
  3. seb16

    seb16 LI Guru Member

    Thank you mstombs,
    It indeed replaces the ip addr like charm!

Share This Page