virtualbox ubuntu  ネットワーク割り当て


----------------
ネットワーク ・・・NAT 指定の場合

hayato@z800-VirtualBox:~$ sudo ifconfig
[sudo] hayato のパスワード:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::733f:4481:ea2a:df3c prefixlen 64 scopeid 0x20<link>
ether 08:00:27:bc:e3:61 txqueuelen 1000 (イーサネット)
RX packets 13 bytes 2832 (2.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 80 bytes 8872 (8.8 KB)
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 1000 (ローカルループバック)
RX packets 57 bytes 4799 (4.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 57 bytes 4799 (4.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


----------------
ネットワーク ・・・NATネットワーク 指定の場合

hayato@z800-VirtualBox:~$ sudo ifconfig

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.4 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::733f:4481:ea2a:df3c prefixlen 64 scopeid 0x20<link>
ether 08:00:27:bc:e3:61 txqueuelen 1000 (イーサネット)
RX packets 116308 bytes 169770893 (169.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 49985 bytes 3159765 (3.1 MB)
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 1000 (ローカルループバック)
RX packets 144 bytes 13336 (13.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 144 bytes 13336 (13.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

----------------

ネットワーク ・・・ブリッジアダプター 指定の場合
ホストOS と同じネットワーク内アドレスになる。

hayato@z800-VirtualBox:~$ sudo ifconfig
[sudo] hayato のパスワード:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.6 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2405:6585:c600:1100:559:6e4:945d:bada prefixlen 64 scopeid 0x0<global>
inet6 2405:6585:c600:1100:4053:cf19:4151:a9ef prefixlen 64 scopeid 0x0<global>
inet6 fe80::733f:4481:ea2a:df3c prefixlen 64 scopeid 0x20<link>
ether 08:00:27:bc:e3:61 txqueuelen 1000 (イーサネット)
RX packets 33 bytes 5593 (5.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 113 bytes 13560 (13.5 KB)
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 1000 (ローカルループバック)
RX packets 81 bytes 7027 (7.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 81 bytes 7027 (7.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

----------------

ネットワーク ・・・内部ネットワーク 指定の場合

hayato@z800-VirtualBox:~$ sudo ifconfig
[sudo] hayato のパスワード:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::733f:4481:ea2a:df3c prefixlen 64 scopeid 0x20<link>
ether 08:00:27:bc:e3:61 txqueuelen 1000 (イーサネット)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 61 bytes 10151 (10.1 KB)
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 1000 (ローカルループバック)
RX packets 44 bytes 4321 (4.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 44 bytes 4321 (4.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

*** ローカルIPのみになる

----------------
ネットワーク ・・・ホストオンリーアダプター 指定の場合
hayato@z800-VirtualBox:~$ sudo ifconfig
[sudo] hayato のパスワード:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.56.101 netmask 255.255.255.0 broadcast 192.168.56.255
inet6 fe80::733f:4481:ea2a:df3c prefixlen 64 scopeid 0x20<link>
ether 08:00:27:bc:e3:61 txqueuelen 1000 (イーサネット)
RX packets 4 bytes 1830 (1.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 68 bytes 7981 (7.9 KB)
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 1000 (ローカルループバック)
RX packets 49 bytes 4465 (4.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 49 bytes 4465 (4.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

投票数:0 平均点:0.00

 
Back to Top