lo="lo 127.0.0.1"
eth0="eth0 192.168.1.40 netmask 255.255.255.0 broadcast 192.168.1.255"
eth01="eth0:1 192.168.1.41 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo eth0 eth01)
gateway="default gw 192.168.1.1"
localhost="-net 127.0.0.0 netmask 255.0.0.0 metric 0 lo"
ROUTES=(localhost gateway)
Useful for binding lots of ips to a single host..for things like webhosting (ip based virtual hosting, so each host can have its own SSL Cert).
It is also nice for providing mutliple services. I have a dns server running on .41, but not on .40.
]]>Can you explain your network topology a bit?
For instance, I have:
DSL modem -> router
router connects to 3 machines, hardwired, and 3 wireless
1) If so, make sure you have entries for eth0 and eth1 in rc.conf.
2) If you run '/etc/rc.d/network restart' it should re-read your rc.conf interfaces.
I am using 2 IPs. One is a private and next one is public IP address. The following questions are:
1. How Can I write both IPs to rc.conf ?
2. How can I restart rc.conf without restart PC ?
Thanks a lot !
]]>