View Single Post
  #6   (View Single Post)  
Old 21st December 2008
dextro dextro is offline
Port Guard
 
Join Date: Dec 2008
Posts: 21
Default

Code:
gateway# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            216.232.224.254    UGS         0   771074   nfe0
10.0.0.0/24        link#2             UC          0        0    rl0
10.0.0.2           00:17:31:b2:31:1d  UHLW        1 44602500    rl0    804
127.0.0.1          127.0.0.1          UH          0      295    lo0
207.6.112.0/20     link#5             UC          0        0 ngeth0
207.6.112.254      link#5             UHLW        1        0 ngeth0
216.232.224.0/20   link#1             UC          0        0   nfe0
216.232.224.254    00:90:1a:a0:3d:ce  UHLW        2        0   nfe0      6

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0

gateway# ifconfig nfe0
nfe0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:14:2a:19:c4:a5
        inet 216.232.236.243 netmask 0xfffff000 broadcast 216.232.239.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

gateway# ifconfig ngeth0
ngeth0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:5c:16:10:dd:79
        inet 207.6.112.184 netmask 0xfffff000 broadcast 207.6.127.255

gateway# dhclient nfe0
DHCPREQUEST on nfe0 to 255.255.255.255 port 67
DHCPACK from 216.232.224.254
bound to 216.232.236.243 -- renewal in 3600 seconds.

gateway# dhclient ngeth0
DHCPREQUEST on ngeth0 to 255.255.255.255 port 67
DHCPACK from 207.6.112.254
bound to 207.6.112.184 -- renewal in 3600 seconds.

gateway# ping -S 216.232.236.243 72.14.207.104
PING 72.14.207.104 (72.14.207.104) from 216.232.236.243: 56 data bytes
64 bytes from 72.14.207.104: icmp_seq=0 ttl=244 time=119.186 ms
^C
--- 72.14.207.104 ping statistics ---
2 packets transmitted, 1 packets received, 50.0% packet loss
round-trip min/avg/max/stddev = 119.186/119.186/119.186/0.000 ms

gateway# ping -S 207.6.112.184 72.14.207.104
PING 72.14.207.104 (72.14.207.104) from 207.6.112.184: 56 data bytes
64 bytes from 72.14.207.104: icmp_seq=0 ttl=244 time=121.193 ms
^C
--- 72.14.207.104 ping statistics ---
2 packets transmitted, 1 packets received, 50.0% packet loss
round-trip min/avg/max/stddev = 121.193/121.193/121.193/0.000 ms

gateway#
So from what I can tell both interfaces (nfe0, ngeth0) work fine. But when I try and do something like:

Code:
nat on ngeth0 from !(ngeth0) -> (ngeth0:0)
it doesn't work, but

Code:
nat on nfe0 from !(nfe0) -> (nfe0:0)
works just fine! wtf?

Last edited by dextro; 21st December 2008 at 05:12 AM.
Reply With Quote