zoukankan      html  css  js  c++  java
  • 配置interfaces

    demo1

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    source /etc/network/interfaces.d/*
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto enp1s0
    iface enp1s0 inet manual
    auto enp2s0
    iface enp2s0 inet manual
    auto enp3s0
    iface enp3s0 inet manual 
    auto enp4s0
    iface enp4s0 inet dhcp 
    
    auto br1
    iface br1 inet static
      bridge_ports enp1s0 enp2s0 enp3s0
      gateway 192.168.10.1
      broadcast 192.168.10.255
      netmask 255.255.255.0
      address 192.168.10.2

    demo2

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet manual
    auto eth1
    iface eth1 inet manual
    auto eth2
    iface eth2 inet manual
    
    #auto eth3
    #iface eth3 inet dhcp
    
    auto eth3
    iface eth3 inet static
    address 192.168.1.101
    gateway 192.168.1.1
    netmask 255.255.255.0
    
    auto br0
    iface br0 inet static
        bridge_ports eth0 eth1 eth2
        gateway 192.168.99.1
        broadcast 192.168.99.255
        netmask 255.255.255.0
        address 192.168.99.2

  • 相关阅读:
    MogileFS的实现和bug解决
    MogileFS介绍
    SAMBA
    NFS
    测试DNS服务的命令
    DNS中的AC、rndc、智能DNS解析和基础排错
    DNS的主从、子域授权和转发服务器
    DNS域名记录
    DNS
    JavaScript设计模式与开发实践随笔(二)
  • 原文地址:https://www.cnblogs.com/sea-stream/p/11129923.html
Copyright © 2011-2022 走看看