Jump to content

g3rax

Active Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by g3rax

  1. Thanks for the information. unfortunately that will not work for me. My gateway is 192.168.0.1. any other ideas?

    What I would do is comment the whole line and type in your gateway directly.

    # This sets up the Default Route
    #
    #GW=`ifconfig $Wan | grep "inet addr:"| grep -v "127.0.0.1" | cut -d: -f2 | awk '{ print $1}' | cut -d. -f1,2,3`
    GW="192.168.0.1"

    If this does not work then you have other problems.

    Also can you post your interfaces and corresponding IPs. That way, it will be easier to track down where the connection is failing.

  2. I don't know if it is relevant to any problems any one is having but this scrips assumes that you internet gateway IP end in "1"

    But if you are like me were your modem or router is set to 254 you have to change the following line.

    # This sets up the Default Route

    #

    GW=`ifconfig $Wan | grep "inet addr:"| grep -v "127.0.0.1" | cut -d: -f2 | awk '{ print $1}' | cut -d. -f1,2,3`

    GW=`echo $GW.1`

    to

    # This sets up the Default Route

    #

    GW=`ifconfig $Wan | grep "inet addr:"| grep -v "127.0.0.1" | cut -d: -f2 | awk '{ print $1}' | cut -d. -f1,2,3`

    GW=`echo $GW.254`

    Or to whatever your gateway ends with.

×
×
  • Create New...