Reply To: Passing static IPs

Home Page Forums Network Management ZeroShell Passing static IPs Reply To: Passing static IPs

#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