address:
ip address add address/prefix_len broadcast + dev interface
ip address del address/prefix_len dev interface
ip address flush dev interface
ip address show
inet 192.168.0.152/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0
inet6 fe80::a697:b1ff:fe6e:abb1/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
route:
ip route
default via 192.168.0.1 dev wlan0 proto dhcp src 192.168.0.152 metric 303
192.168.0.0/24 dev wlan0 proto dhcp scope link metric 303
ip -6 route show
fe80::/64 dev wlan0 proto kernel metric 256 pref medium
wpa_passphrase MyWifi 12345678 > /etc/wpa_supplicant.conf
/etc/network/interfaces
auto wlan0
iface wlan0 inet static
address 192.168.0.152
netmask 255.255.255.0
gateway 192.168.0.1
pre-up wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
sudo service networking restart
sudo ifdown wlan0
sudo ifup wlan0
iwconfig wlan0
ip addr show wlan0
gentoo
ip link show
/etc/conf.d/net
routes_wlan1="192.168.0.152/24 via 192.168.0.255 default via 192.168.0.1"
config_wlan0="192.168.0.152 netmask 255.255.255.0 broadcast 192.168.0.255"
config_wlan0="fe80::a697:b1ff:fe6e:abb1/64"
sudo rc-service net.wlan0 start
sudo rc-update add net.eth0 default
ipsec
- CONFIG_XFRM: This option enables the transformation framework for IPsec, which handles the encryption, authentication, and compression of IP packets. If you disable this option, you will not be able to use any IPsec protocol, such as ESP, AH, or IPComp. You will also not be able to use the ip xfrm command or the Netlink/XFRM interface to configure IPsec policies and keys1.
- CONFIG_INET_AH: This option enables the IP Authentication Header (AH) transformation for IPv4 packets. AH is a protocol that provides integrity and authentication for IP packets, but not confidentiality. If you disable this option, you will not be able to use AH for IPv4 packets. You will also disable the CONFIG_INET6_AH option, which enables AH for IPv6 packets1.
- CONFIG_INET_ESP: This option enables the IP Encapsulating Security Payload (ESP) transformation for IPv4 packets. ESP is a protocol that provides confidentiality, integrity, and authentication for IP packets. If you disable this option, you will not be able to use ESP for IPv4 packets. You will also disable the CONFIG_INET6_ESP option, which enables ESP for IPv6 packets1.
- CONFIG_INET_IPCOMP: This option enables the IP Compression Protocol (IPComp) transformation for IPv4 packets. IPComp is a protocol that provides compression for IP packets, which can reduce the bandwidth usage and improve the performance of network communications. If you disable this option, you will not be able to use IPComp for IPv4 packets. You will also disable the CONFIG_INET6_IPCOMP option, which enables IPComp for IPv6 packets1.
Comments
Post a Comment