宅基地专用网络突然无法访问

时间:2019-02-09 04:48:32

标签: laravel vagrant homestead

我已经使用Homestead 5.2进行本地开发了大约半年了,但是现在我再也无法通过192.168.10.10访问它了,我不知道为什么。

  1. 虚拟机可以成功启动,并且nginx服务正在监听。
  2. 从Mac ping 192.168.10.10失败。
  3. 从我的Mac运行ifconfig不会显示192.168.10.10。
  4. 将IP地址从192.168.10.10更改为192.168.10.20,仍然没有运气。
  5. vm端口转发工作
  6. 我尝试使用专用网络启动另一个centos vm,但也无法访问。

无用的输出:

==> homestead-7: Clearing any previously set network interfaces...
==> homestead-7: Preparing network interfaces based on configuration...
    homestead-7: Adapter 1: nat
    homestead-7: Adapter 2: hostonly
    homestead-7: Adapter 3: hostonly
==> homestead-7: Forwarding ports...
    homestead-7: 80 (guest) => 8000 (host) (adapter 1)
    homestead-7: 443 (guest) => 44300 (host) (adapter 1)
    homestead-7: 3306 (guest) => 33060 (host) (adapter 1)
    homestead-7: 5432 (guest) => 54320 (host) (adapter 1)
    homestead-7: 8025 (guest) => 8025 (host) (adapter 1)
    homestead-7: 6001 (guest) => 60010 (host) (adapter 1)
    homestead-7: 8080 (guest) => 8080 (host) (adapter 1)
    homestead-7: 27017 (guest) => 27017 (host) (adapter 1)
    homestead-7: 22 (guest) => 2222 (host) (adapter 1)

在Mac上为ifconfig:

vboxnet0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ether 0a:00:27:00:00:00
vboxnet1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        ether 0a:00:27:00:00:01
        inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255
vboxnet2: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ether 0a:00:27:00:00:02

宅基地上的ifconfig:

eth1      Link encap:Ethernet  HWaddr 08:00:27:b2:79:ef
          inet addr:192.168.10.10  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feb2:79ef/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1226 (1.2 KB)

我不想重新安装我的宅基地以使其再次正常工作。

现在我应该提供什么信息以及下一步要检查什么?

0 个答案:

没有答案