Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

configure static ip address linux

# for debain in /etc/network/interfaces
# you can find your network adapter with ip a
# no need for network or broadcast address when you set your netmask right

auto <your-networkadapter>
allow-hotplug <your-networkadapter>
iface <your-networkadapter> inet static
        address 192.168.X.X
        netmask 255.255.255.X
        gateway 192.168.X.X
 
PREVIOUS NEXT
Tagged: #configure #static #ip #address #linux
ADD COMMENT
Topic
Name
9+8 =