Why are my virtual interfaces all returning as the same address?

All interfaces return as 172.16.57.140???

$ netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
——————– ——————– —– —– —— ———
172.16.56.0 172.16.57.140 U 1 5 bge0:10
172.16.56.0 172.16.57.141 U 1 0 bge0:11
172.16.56.0 172.16.57.104 U 1 0 bge0:6
172.16.56.0 172.16.57.106 U 1 0 bge0:7
172.16.56.0 172.16.57.110 U 1 0 bge0:8
172.16.56.0 172.16.57.121 U 1 0 bge0:9
172.16.56.0 172.16.56.103 U 1 0 bge0
172.16.56.0 172.16.57.126 U 1 0 bge0:1
172.16.56.0 172.16.57.117 U 1 0 bge0:2
172.16.56.0 172.16.57.132 U 1 0 bge0:4
default 172.16.56.18 UG 1 15
127.0.0.1 127.0.0.1 UH 1 0 lo0

you will need to create an additional network or host route.

right now .10 has the priority. first match wins.

A host route trumps a network route
A network route will trump the default.

3.2: How to Add Static Routes

At any time, you can add static routes to your machine via the route command. The standard syntax for adding a network route is:

route add net "remote-network-ip gateway-ip" ‘hop-metric-count’

Leave a Reply

Your email address will not be published. Required fields are marked *