Vlan 에서 Ping이 안됩니다.(embedded)
Embedded 환경에 linux 2.6.20입니다.
아래와 같이 설정을 하고 VLAN(eth1.3)에서 Ping을 안되네요... 에효~
(직접 eth1에 IP를 설정하면 외부로 Ping이 됩니다.)
# ifconfig eth1 0.0.0.0 up
# vconfig add eth1 3
# ifconfig eth1.3 172.30.1.11 netmask 255.255.255.0 broadcast 172.30.1.255 up
<7>eth1.3: add 01:00:5e:00:00:01 mcast address to master interface
# 
# 
ifconfig 및 설정된 값들은 아래와 같습니다.
# ifconfig
eth1 Link encap:Ethernet HWaddr 00:20:DA:65:23:75 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:0 (0.0 B) TX bytes:1260 (1.2 KiB)
eth1.3 Link encap:Ethernet HWaddr 00:20:DA:65:23:75 
inet addr:172.30.1.11 Bcast:172.30.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 
#
# 
# cat /proc/net/vlan/eth1.3 
eth1.3  VID: 3   REORDER_HDR: 1  dev->priv_flags: 1
         total frames received            0
          total bytes received            0
      Broadcast/Multicast Rcvd            0
      total frames transmitted           21
       total bytes transmitted          966
            total headroom inc            0
           total encap on xmit           21
Device: eth1
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings: 
# 
# cat /proc/net/vlan/config 
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth1.3         | 3  | eth1
# 
#
#
그래서 아래와 같이 Default gateway도 바꿔 봤는데 안되네요...
mtu도 작게 해봤는데도 안되구요.. 에효~
# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
172.30.1.0      0.0.0.0         255.255.255.0   U         0 0          0 eth1.3
# 
# 
# ifconfig eth1 192.168.1.55 broadcast 192.168.1.255 netmask 255.255.255.0
# route add default gw 192.168.1.254
# 
# 
# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
172.30.1.0      0.0.0.0         255.255.255.0   U         0 0          0 eth1.3
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
0.0.0.0         192.168.1.254   0.0.0.0         UG        0 0          0 eth1
# 


올린이 입니다.
기존의 스크립트를 이용해야 해서 vconfig로 해야 하는 상황입니다. 에효~
올린이 입니다.
arp테이블 갱신쪽이 문제였네요.
request하고 reply까지 오는데 arp테이블에 갱신이 안되는군요...
직접 mac을 넣으면 ping이 갑니다.
댓글 달기