• Edit file /etc/network/interfaces
jaringan :~#nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 200.200.202.1
netmask 255.255.255.0
network 200.200.202.0
broadcast 200.200.202.255
gateway 200.200.202.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
dns-search smkn1bangil.sch.id
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
• Merestart layanan interfaces
jaringan :~# /etc/init.d/networking restart
jaringan :~# ifup eth0
jaringan :~# ifdown eth0
jaringan :~# ifconfig
jaringan :~#nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 200.200.202.1
netmask 255.255.255.0
network 200.200.202.0
broadcast 200.200.202.255
gateway 200.200.202.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
dns-search smkn1bangil.sch.id
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
• Merestart layanan interfaces
jaringan :~# /etc/init.d/networking restart
jaringan :~# ifup eth0
jaringan :~# ifdown eth0
jaringan :~# ifconfig
Komentar
Posting Komentar