Ubuntu网络设置

来源:互联网 发布:城市天际线mod软件 编辑:程序博客网 时间:2024/06/09 21:43

  # The loopback network interface(配置环回口)

  auto lo                                       # 开机自动激lo接口

  iface lo inet loopback                        # 配置lo接口为环回口

  # The primary network interface (配置主网络接口)

  auto eth0                                     #开机自动激活eth0接口

  iface eth0 inet static                        #配置eth0接口为静态设置IP地址

  address 10.16.3.99

  netmask 255.255.255.0

  network 10.16.3.0

  broadcast 10.16.3.255

  gateway 10.16.3.1



//ifdown eth0

//ifup eth0

0 0
原创粉丝点击