0

1 つのパブリック動的 IP と LAN IP を持つ Google クラウド コンピューティングで新しいインスタンスを作成しましたが、インターフェイス リストを見ると、ifconfig の出力の下に LAN Ip インターフェイスが 1 つしか表示されません。取得方法を教えてください。このインターフェイスのパブリック IP。

#ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1460
        inet 10.240.0.2  netmask 255.255.255.255  broadcast 10.240.0.2
        inet6 fe80::4001:aff:fef0:2  prefixlen 64  scopeid 0x20<link>
        ether 42:01:0a:f0:00:02  txqueuelen 1000  (Ethernet)
        RX packets 1196  bytes 214299 (209.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1124  bytes 143037 (139.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 3515  bytes 1891143 (1.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3515  bytes 1891143 (1.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

詳細が必要な場合はお知らせください。

前もって感謝します。

4

1 に答える 1