[OpenIndiana-discuss] virtual nic an routing
alessio
alessio at ftgm.it
Fri Aug 19 12:45:04 UTC 2011
I have a virtual nic (vnic) on oi_148
dladm create-vnic -m random -l igb0 vnic2
ipadm create-addr -T static -d -a 192.168.11.127/24 vnic2/test
Interface igb0 has an IP of the same subnet of vnic2
Whitout VNIC, outgoing packets have the igb0 ip address. Ok.
With VNIC configured and enabled, outgoing packets have the vnic2 ip
address.
If I add a second vnic, outgoing packets will have the ip address of
such second vnic.
The routing table is as follow
netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ----------------
default 192.168.11.1 UG 7 10763
192.168.11.0 192.168.11.127 U 3 3033 vnic2
192.168.11.0 192.168.11.50 US 7 8224 igb0
127.0.0.1 127.0.0.1 UH 2 168 lo0
There is a way to set priority or precedence?
Even if I use ifconfig vnic2 deprecated, as stated in the man page,
outgoing packets have vnic2 ip address as source ip.
Ciao
A
More information about the OpenIndiana-discuss
mailing list