How to add second ip address on Ubuntu

Pomocí oblíbeného editoru otevřete /etc/network/interface a přidejte řádky „auto eth0:0…“

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.168.135
        netmask 255.255.255.0
        network 192.168.168.0
        broadcast 192.168.168.255
        gateway 192.168.168.1
        dns-nameservers 192.168.168.10
        dns-domain demolab.local

# The secondary network interface

auto eth0:0
        iface eth0:0 inet static
                address 192.168.20.135
                netmask 255.255.255.0
(Visited 66 times, 1 visits today)

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *