freebsd at pursued-with.net
Sat Jun 19 10:00:26 PDT 2004
On Jun 19, 2004, at 06:11, John Lee wrote:
> hi, i have 7 ips on one box, however they can't connect internally
> to each other IP ports. please advise.
Counting below, you only reference 6 IP addresses on the box:
22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11,
and 18.104.22.168. What's the seventh one?
> here's my setup:
> ifconfig_sis0="inet 22.214.171.124 netmask 255.255.255.0"
> ifconfig sis0 inet 126.96.36.199/32 alias
Ok. BTW, these statements indicate that you own an entire class C of
public address space. That seems unlikely, and if it's not the case,
you shouldn't be using the addresses.
> ifconfig sis0 inet 188.8.131.52/32 alias
> ifconfig sis0 inet 184.108.40.206/32 alias
> ifconfig sis0 inet 220.127.116.11/32 alias
> ifconfig sis0 inet 18.104.22.168/32 alias
Problem here. These addresses are not in the same subnet as the
primary address (22.214.171.124/24). Therefore you shouldn't use a /32
for them, you should use the actual netmask. This is definitely true
for the FIRST 63.223.71.x address, and I *think* it's true for the
others as well. I've never actually seen an example of assigning
multiple IPs for a second subnet under FreeBSD.
> route add 126.96.36.199 188.8.131.52
This is broken. You're saying "route any traffic this host is sending,
destined for itself, to an external gateway". I really doubt you want
to do that.
> route add 184.108.40.206 220.127.116.11
> route add 18.104.22.168 22.214.171.124
> route add 126.96.36.199 188.8.131.52
> route add 184.108.40.206 220.127.116.11
Again broken, for the same reasons. You don't normally enter routing
statements for your OWN IP addresses, you enter routing statements that
describe how to reach OTHER addresses/networks.
More information about the freebsd-questions