ifconfig eth0:1 up 10.1.1.2

but i found out you can also do
ip addr add 10.1.1.2/24 dev eth0

HOWEVER and this is the gotcha if you use the second variant you CAN’T use ifconfig -a to see that added alias – you need to use ip addr list

Zeigt WLANs

sudo iwlist wlan0 scanning | grep -A 7 Cell

zeigt die IP Adresse:

ip addr show wlan0

zeigt alle Interfaces

ip addr

show routing table

ip route or route

change default geteway

ip route replace default via 192.168.0.5

nameserver ist in

/etc/resolv.conf

zeigt die laufenden Verbindungen

netstat -tulpan

ss state established '( dport = :80 )'

nethogs

sudo nethogs wlan0

Ports testen

nmap -T4 A testo.com

 

 

Deprecated Linux networking commands and their replacements

In my article detailing the command line utilities available for configuring and troubleshooting network properties on Windows and Linux, I mentioned some Linux tools that, while still included and functional in many Linux distributions, are actually considered deprecated and therefore should be phased out in favor of more modern replacements.

Specifically, the deprecated Linux networking commands in question are: arpifconfigiptunneliwconfignameif,netstat, and route. These programs (except iwconfig) are included in the net-tools package that has been unmaintained for years. The functionality provided by several of these utilities has been reproduced and improved in the new iproute2suite, primarily by using its new ip command. The iproute2 software code and documentation are available from theLinux Foundation.

Deprecated command

Replacement command(s)

arp ip n (ip neighbor)
ifconfig ip a (ip addr), ip linkip -s (ip -stats)
iptunnel ip tunnel
iwconfig iw
nameif ip linkifrename
netstat ssip route (for netstat-r), ip -s link (for netstat -i), ip maddr (for netstat-g)
route ip r (ip route)

.
Now let’s take a closer look at these deprecated commands and their replacements.

 

This article will not focus on iproute2 or the ip command in detail; instead it will simply give one-to-one mappings between the deprecated commands and their new counterparts. For replacement commands that are listed as ‘not apparent’, please contact me if you know otherwise.

Jump to:

Please note that nslookup and dig are covered separately here.