Learn How to Encrypt Directories with eCryptfs on Ubuntu 16.04
Click on the below link to find out...>>> Click Here <<<
ifconfig -a | grep eth eth0 Link encap:Ethernet HWaddr 00:15:c5:4a:16:5a
sudo lshw -class network *-network description: Ethernet interface product: BCM4401-B0 100Base-TX vendor: Broadcom Corporation physical id: 0 bus info: pci@0000:03:00.0 logical name: eth0 version: 02 serial: 00:15:c5:4a:16:5a size: 10MB/s capacity: 100MB/s width: 32 bits clock: 33MHz capabilities: (snipped for brevity) configuration: (snipped for brevity) resources: irq:17 memory:ef9fe000-ef9fffff
sudo apt install ethtool
sudo ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Current message level: 0x000000ff (255) Link detected: yes
auto eth0 iface eth0 inet static pre-up /sbin/ethtool -s eth0 speed 1000 duplex full
sudo ifconfig eth0 10.0.0.100 netmask 255.255.255.0
ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:15:c5:4a:16:5a inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::215:c5ff:fe4a:165a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:466475604 errors:0 dropped:0 overruns:0 frame:0 TX packets:403172654 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2574778386 (2.5 GB) TX bytes:1618367329 (1.6 GB) Interrupt:16
sudo route add default gw 10.0.0.1 eth0
route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
nameserver 8.8.8.8 nameserver 8.8.4.4
ip addr flush eth0
auto eth0 iface eth0 inet dhcp
sudo ifup eth0
sudo ifdown eth0
auto eth0 iface eth0 inet static address 10.0.0.100 netmask 255.255.255.0 gateway 10.0.0.1
sudo ifup eth0
sudo ifdown eth0
ifconfig lo lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2718 errors:0 dropped:0 overruns:0 frame:0 TX packets:2718 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:183308 (183.3 KB) TX bytes:183308 (183.3 KB)
auto lo iface lo inet loopback
/etc/resolv.conf -> ../run/resolvconf/resolv.conf
iface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 gateway 192.168.3.1 dns-search example.com dns-nameservers 192.168.3.45 192.168.8.10
iface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 gateway 192.168.3.1 dns-search example.com sales.example.com dev.example.com dns-nameservers 192.168.3.45 192.168.8.10
127.0.0.1 localhost 127.0.1.1 ubuntu-server 10.0.0.11 server1 server1.example.com vpn 10.0.0.12 server2 server2.example.com mail 10.0.0.13 server3 server3.example.com www 10.0.0.14 server4 server4.example.com file
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts: files dns [NOTFOUND=return] mdns4_minimal mdns4
sudo apt install bridge-utils
auto lo iface lo inet loopback auto br0 iface br0 inet static address 192.168.0.10 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off
sudo ifup br0
C:\> nslookup Default Server: xxxxxxxxxx Address: xxx.xxx.xxx.xxx > set type=mx > example.com Non-authoritive answer: example.com MX preference = 10, mail exchanger = mail1.example.com example.com MX preference = 20, mail exchanger = mail2.example.comOSX / Linux / BSD (host):
$ host -t MX example.com example.com mail is handled by 10 mail1.example.com. example.com mail is handled by 20 mail2.example.com.MX records are always an FQDN (Fully Qualified Domain Name, if setup properly) and have priority levels which are the 10 and 20 you see. Priorities are important; if a mail server tries to send an e-mail to anything@thedomain, then it’ll use the LOWEST priority mail server first. If this accepts the mail, then job complete.. if it times out or the lookup of the IP address doesn’t complete, then it’ll try the next lowest priority mail server. You can also use two mail servers with the same priority level, and mail servers will just choose one when sending – useful for a bit of simple load balancing.