Armadilloフォーラム

ppp0 のdestination に 無いipアドレスが載る原因について

asp_washio2017

2021年4月27日 17時36分

ppp0 のdestination に 無いipアドレスが載る

armadillo IoT A6 でのLTE通信を試験しているのですが
pppの接続は成功していますが"destination 192.168.50.1"と以下のように存在しない
IP番号が表示されています。正しくはこちらで192.168.200.17が正しいと思うのですが
原因がわかれば教えてください。

1)ppp0
root@armadillo:/etc# ifconfig ppp0
ppp0: flags=4305 mtu 1500
inet 146.99.223.--- netmask 255.255.255.255 destination 192.168.50.1
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 41535 bytes 5189437 (4.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 40205 bytes 2140719 (2.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

2)eth0
root@armadillo:/etc# ifconfig eth0
eth0: flags=4163 mtu 1500
inet 192.168.200.17 netmask 255.255.255.0 broadcast 192.168.200.255
inet6 fe80::211:cff:fe2a:214c prefixlen 64 scopeid 0x20
ether 00:11:0c:2a:21:4c txqueuelen 1000 (Ethernet)
RX packets 13903 bytes 922352 (900.7 KiB)
RX errors 0 dropped 13062 overruns 0 frame 0
TX packets 137 bytes 14403 (14.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

3)route
root@armadillo:/etc# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
192.168.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

コメント

at_shinya.koga

2021年4月30日 5時08分

アットマークテクノの古賀と申します。

asp_washio2017さん:
>armadillo IoT A6 でのLTE通信を試験しているのですが
>pppの接続は成功していますが"destination 192.168.50.1"と以下のように存在しない
>IP番号が表示されています。正しくはこちらで192.168.200.17が正しいと思うのですが
>原因がわかれば教えてください。
>
>1)ppp0
>root@armadillo:/etc# ifconfig ppp0
>ppp0: flags=4305mtu 1500
> inet 146.99.223.--- netmask 255.255.255.255 destination 192.168.50.1
> ppp txqueuelen 3 (Point-to-Point Protocol)
> RX packets 41535 bytes 5189437 (4.9 MiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 40205 bytes 2140719 (2.0 MiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

'destination' は、PPP の接続先相手のアドレスを指しますので、LTE 網の側が、そのアドレスを申告しているのかも知れません。

>3)route
>root@armadillo:/etc# route
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use Iface
>default 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
>192.168.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
>192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

route の出力のうち、'Flags' の H が立っており、かつ、Genmask が 255.255.255.255 ですから、ターゲットホスト 192.168.50.1 に対しては、ppp0 のデフォルトゲートウェイが経路宛先、ということですから、ppp0 の接続先が 192.168.50.1 という意味ですよね。

ちなみに、LTE 網がアドレスを申告せず、得られない場合は、ppd は 10.64.64.64 を接続先アドレスとして割り当てるようです。
https://superuser.com/questions/624477/strange-default-router-address-f…