Paldo uses NetworkManager by default for managing all network interfaces. Unfortunately, NetworkManager 0.6 doesn't support static ip addresses yet (planned for next major version). To use static ip addresses in paldo, you need to disable NetworkManager by editing
/etc/default/NetworkManager (TRUE into FALSE). You can set the static ip address in
/etc/network/interfaces, exactly the same as in Debian (see man interfaces for details). Or read my guide:
Paldo and static IP
Your main network configuration file is
/etc/network/interfaces
Desired new sample settings:
=> Host IP address 192.168.1.100
=> Netmask: 255.255.255.0
=> Network ID: 192.168.1.0
=> Broadcast IP: 192.168.1.255
=> Gateway/Router IP: 192.168.1.254
=> DNS Server: 192.168.1.254
Open network configuration file
OR
Find and remove dhcp entry:
Append new network settings:
Code | [In neuem Fenster öffnen] |
|
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254 |
Save and close the file. Restart the network:
Task: Define new DNS servers
Open /etc/resolv.conf file
You need to remove old DNS server assigned by DHCP server:
search myisp.com
Save and close the file.
Task: Test DNS server
Network command line cheat sheet
You can also use commands to change settings. Please note that these settings are temporary and not the permanent. Use above method to make network changes permanent or GUI tool as described below.
Task: Display network interface information
Task: Take down network interface eth0 / take a network interface down
OR
Task: Bring a network interface eth0 up
OR
Task: Change IP address and netmask from command line
Activate network interface eth0 with a new IP (192.168.1.50) / netmask:
Task: Display the routing table
OR$
Output:
Code | [In neuem Fenster öffnen] |
|
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 ra0
172.16.114.0 * 255.255.255.0 U 0 0 0 eth0
172.16.236.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.254 0.0.0.0 UG 0 0 0 ra0
|
Task: Add a new gateway
Task: Display current active Internet connections (servers and established connection)
Task: Display open ports
OR
Task: Display network interfaces stats (RX/TX etc)
Task: Display output for active/established connections only
Where,
- -t : TCP connections
- -u : UDP connections
- -e : Established
Task: Test network connectivity
Send ICMP ECHO_REQUEST to network hosts, routers, servers etc with ping command. This verifies connectivity exists between local host and remote network system:
See simple Linux system monitoring with ping command and scripts for more information.
A man page is your best friend when you wanted to learn more about particular command or syntax. For example, read detailed information about ifconfig and netstat command:
Just get a short help with all command options by appending --help option to each command:
Find out what command is used for particular task by searching the short descriptions and manual page names for the keyword:
Display short descriptions of a command:
Linux offers an excellent collection of utilities, which can be use to finding the files and executables, remember you cannot memorize all the commands and files.
Sorry for my perfect English
