Passing static IPs

Home Page Forums Network Management ZeroShell Passing static IPs

This topic contains 4 replies, has 0 voices, and was last updated by  gordon 10 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #41460

    gordon
    Member

    Hey all,

    Firstly wow – Zeroshell is an awsome peice of software!!!! Welldone to the coders!!

    It does everything i want but one thing, here’s my goal

    Multiple wan’s (bonded adsl) in
    ¦
    ¦
    /
    Wan Failover
    ¦
    ¦
    /
    Vlan’s out (approx 60) on LAN addresses
    ¦
    ¦
    /
    QoS on each VLAN – limiting bandwidth
    ¦
    ¦
    /
    Static IP assigned to some vlans for Static WAN Address (Not port forward)

    All is great but can’t work out how to pass static wan address down to particular VLANs?
    Is it possible on Zeroshell – I have a rather crude cent os box doing it at the moment, but its all CLI and no GUI meaning i’m the only one in the team that can do anything on it.

    Hope that makes sense??

    Cheers G

    #47587

    imported_fulvio
    Participant

    Could you post further details? Could you post your CentOS configuration?

    #47588

    gordon
    Member

    Hi Fulvio,

    Thanks for the reply

    here’s a few lines from /usr/bin/dedicatedip

    #ifconfig ppp0:1 89.xxx.xxx.192 netmask 255.255.255.255 # Assigned to VLAN17 – Users Router
    #ifconfig ppp0:2 89.xxx.xxx.193 netmask 255.255.255.255 # Assigned to VLAN17 – Gateway
    #ifconfig ppp0:3 89.xxx.xxx.194 netmask 255.255.255.255 # Assigned to VLAN12 – Gateway
    #ifconfig ppp0:4 89.xxx.xxx.195 netmask 255.255.255.255 # Assigned to VLAN12 – Users Router

    ifconfig eth0.17:1 89.xxx.xxx.192 netmask 255.255.255.255 # Gateway
    route add -net 89.xxx.xxx.193 netmask 255.255.255.255 gw 10.10.17.1 # Users Router

    ifconfig eth0.12:1 89.xxx.xxx.194 netmask 255.255.255.255 # Gateway
    route add -net 89.xxx.xxx.195 netmask 255.255.255.255 gw 10.10.12.1 # Users Router

    basically if gives one of the static public ip’s as a gateway address and one to the first on that vlan ie 10.10.17.1

    machines on this vlan can then set their ip address as a public ip and a gateway of that on the router.

    bit of fiddling to the firewall to configure access rights and all is done.

    Hope this helps

    Gordon

    #47589

    imported_fulvio
    Participant

    Sorry, but I am not able to understand how this setup works.
    I hope someone on this forum can help you.

    Regards
    Fulvio

    #47590

    gordon
    Member

    Ok, well thanks for your time Fulvio.

    If i find an answer i will let people know.

    just need to get public static IP’s working on the LAN site vlans

    Cheers

    Gordon

    #47591

    gordon
    Member

    Ok how to pass on public static IP’s to vlans

    make sure you have a dhcp asssigned address on the wan nic not a static.

    add this for each static ip to vlan you to the Startup/Cron – Post Boot script

    Note the 10.0.10.1 address is the local address assigned to the vlan interface

    # Startup Script
    route add -net 89.xxx.xxx.90 netmask 255.255.255.255 gw 10.0.10.1 # Users Router IP

    Then add an ip to the vlan interface of say 89.xxx.xxx.91 subnet 255.255.255.255

    Done, assign the machine on that vlan with:
    IP: 89.xxx.xxx.90
    Sub: 255.255.255.240
    GW: 89.xxx.xxx.91

    bingo job done, I have also assigned a DHCP to the local address so that a machine on the end of it can get a dhcp local address to test connection if needed.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.