› Forums › Network Management › ZeroShell › Passing static IPs
- This topic is empty.
-
AuthorPosts
-
February 7, 2009 at 1:03 pm #41460
gordon
MemberHey 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
February 7, 2009 at 2:57 pm #47587imported_fulvio
ParticipantCould you post further details? Could you post your CentOS configuration?
February 7, 2009 at 4:11 pm #47588gordon
MemberHi 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 Routerifconfig 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 Routerifconfig 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 Routerbasically 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
February 7, 2009 at 5:19 pm #47589imported_fulvio
ParticipantSorry, but I am not able to understand how this setup works.
I hope someone on this forum can help you.Regards
FulvioFebruary 7, 2009 at 5:29 pm #47590gordon
MemberOk, 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
February 7, 2009 at 8:48 pm #47591gordon
MemberOk 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 IPThen 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.91bingo 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.
-
AuthorPosts
- You must be logged in to reply to this topic.