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

How to find IP address of router with Tomato firmware?

Discussion in 'Tomato Firmware' started by paulisme, Aug 16, 2009.

  1. paulisme

    paulisme Guest

    I recently updated the firmware of my WRT54G v2.0 router with the Tomato firmware and set it up to be in wireless bridge mode. Everything worked just fine. However, I just changed the WPA password on my primary router, and when I went to update the password on the WRT54G, I couldn't connect to the web interface. I'm pretty sure I know what IP I assigned to it, but I could be mistaken. Is there any way to figure out what the IP I assigned to it is? I'm on Mac OS X.
     
  2. CaNsA

    CaNsA Network Guru Member

    easy way, reset it to defaults using the reset button on the back, hold it down for 30secs while powering it up

    CaNsA
     
  3. pieddu

    pieddu Addicted to LI Member

    if it is in wireless bridge mode, it has the ip in the same class of the AP.
    If LAN interface of AP is 192.168.1.1 it could be 192.168.1.2
    WAN interface is disabled.
    In the device list of the AP, it doesn't appears.

    try
    Code:
    arp -a
    or similar, I don't remember now, Tomatos commands...
     
  4. Planiwa

    Planiwa LI Guru Member


    In Terminal, run:

    Code:
    [B]netstat -rn -finet |grep '^default'[/B]
    Or, if you like, you can paste the following into a file, call it interface, make it executable and run it whenever you need to:

    Code:
    INTERFACES="en0 en1 en2 ppp0"
    en0=Ethernet ; en1=WiFi ppp0=PPP; en2=iPhone
    
    ACTIVE=""; for I in $INTERFACES
    do
    	IFCG="$(ifconfig $I 2>&1)"
    	case "$IFCG" in *inet*) ACTIVE="$ACTIVE $I";; esac
    done
    case "$ACTIVE" in
    "") echo -n "!"
    	say -v whisper "No active network interface"
    	exit
    	;;
    esac
    
    ### Interface (IFNAME) gateway IP
    
    set -- $(netstat -rn -finet |grep '^default')  ## Gateway
    case $# in
    0)	echo -n "?"
    	say -v whisper "There is no network gateway"
    	exit;;
    esac
    
    echo -n " "
    
    INTERFACE=$6
    GATEWAY=$2
    eval IFNAME='$'$INTERFACE
    set -- $(ifconfig $INTERFACE |grep 'inet ')
    IP=$2
    
    echo "GW: $GATEWAY  IP: $IP  IF: $INTERFACE ($IFNAME)"
    say  "Network Interface is $IFNAME. Gateway is $GATEWAY. IP address is $IP."
    
     

Share This Page