View Single Post
  #2   (View Single Post)  
Old 22nd August 2010
bsdplus bsdplus is offline
Real Name: Alan Cheng
Port Guard
 
Join Date: Jun 2009
Location: Shanghai, China
Posts: 21
Smile

Finally worked this out. "route -n add -interface 224.0/4 -gateway [virtual_nic_ip]" did the trick. FYI.

here is on a test machine:

bash-3.00# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
10.181.8.0 10.181.8.161 U 1 1027 e1000g0
10.181.8.0 10.181.8.172 U 1 0 e1000g0:1
127.0.0.1 127.0.0.1 UH 3 56 lo0
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.181.8.161 netmask ffffff00 broadcast 10.181.8.255
ether 0:c:29:f9:c3:d
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.181.8.172 netmask ffffff00 broadcast 10.181.8.255
--------------------------------------------------------------------------
bash-3.00# route -n add -interface 224.0/4 -gateway 10.181.8.172
add net 224.0/4: gateway 10.181.8.172
--------------------------------------------------------------------------
bash-3.00# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
10.181.8.0 10.181.8.161 U 1 1034 e1000g0
10.181.8.0 10.181.8.172 U 1 0 e1000g0:1
224.0.0.0 10.181.8.172 U 1 0 e1000g0:1
127.0.0.1 127.0.0.1 UH 3 56 lo0
bash-3.00#
Reply With Quote