ispconfig3 ports

 

ip version 6 (ipv6) Configuration on Linux

AutoConfiguration,
Auto configuration  is completely independent. Getting the mac address of the card and giving a random ipv6 address.

Static ipv6 configuration
# ——————————————————————————-
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

iface eth0 inet6 static
address 2001:db8::xxxx:yyyy
netmask 64
gateway 2001:db8::xxxx:yy:zzzz
# —————————————————————————–
Your /etc/hosts file should read
127.0.0.1 localhost
127.0.1.1 serverubuntu//change this to 127.0.0.1
192.168.1.199 serverubuntu//add your static IP

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

#— Network Fail logs
#systemctl status network.service
network.service – LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: failed since Thu, 09 Feb 2012 00:11:18 -0500; 8min ago
CGroup: name=systemd:/system/network.service
├ 3850 /bin/bash ./ifup 59173567_autom tica boot
├ 3859 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 25236 /bin/bash ./ifup 59173567_autom tica boot
├ 25245 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 25507 /bin/bash ./ifup 59173567_autom tica boot
├ 25516 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 25903 /bin/bash ./ifup 59173567_autom tica boot
├ 25912 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 26168 /bin/bash ./ifup 59173567_autom tica boot
├ 26177 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 26427 /bin/bash ./ifup 59173567_autom tica boot
├ 26436 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 26686 /bin/bash ./ifup 59173567_autom tica boot
├ 26695 nmcli con up uuid 32aea3d4-ce65-42d1-a3ed-6a42c17a2111
├ 27471 /bin/bash ./ifup ALEJANDRO_autom tica boot
├ 27480 nmcli con up uuid f8a46744-7098-4eb6-8902-34df1bd351f5
├ 28228 /bin/bash ./ifup Auto_58915877 boot
├ 28234 nmcli con up uuid 80a61972-1616-431e-bcf3-d4660386ec35
├ 29174 /bin/bash ./ifup Auto_58915877 boot
└ 29180 nmcli con up uuid 80a61972-1616-431e-bcf3-d4660386ec35
#————————————————————————————
Route Commands

#————————————————————————————

Centos Configuration  or  RedHat

/etc/sysconfig/network

cat /etc/sysctl.conf

 

 

 

#————————————————————————————

Hard drive speed test using Linux command line and hdparm

Note that all tests should be run multiple times and average time should be calculated to get more accurate result.

Bypassing hard drive’s buffer cache memory thus reading directly from the disk.

Read data from the second half of the disk that is if the hard drive size is 100GB.

To obtain cached reads run the following command:

Tcpdump Best Practices

List of interfaces on which tcpdump can listen:


Listen on interface eth0:

Listen on any available interface :

Be verbose while capturing packets:

More verbose while capturing packets:

Very verbose while capturing packets:

Verbose and print the data of each packet in both hex and ASCII, excluding the link level header:

Verbose and print the data of each packet in both hex and ASCII, also including the link level header:

Less verbose (than the default) while capturing packets:

Limit the capture to 100 packets:

Record the packet capture to a file called capture.cap:

Record the packet capture to a file called capture.cap but display on-screen how many packets have been captured in real-time:

Display the packets of a file called capture.cap:

Display the packets using maximum detail of a file called capture.cap:

Display IP addresses and port numbers instead of domain and service names when capturing packets

Capture any packets where the destination host is 192.168.5.1. Display IP addresses and port numbers:

Capture any packets where the source host is 192.168.5.1. Display IP addresses and port numbers:

Capture any packets where the source or destination host is 192.168.5.1. Display IP addresses and port numbers:

Capture any packets where the destination network is 192.168.5.0/24. Display IP addresses and port numbers:

Capture any packets where the source network is 192.168.1.0/24. Display IP addresses and port numbers:

Capture any packets where the source or destination network is 192.168.5.0/24. Display IP addresses and port numbers:

Capture any packets where the destination port is 23. Display IP addresses and port numbers:

Capture any packets where the destination port is is between 1 and 1023 inclusive. Display IP addresses and port numbers:

Capture only TCP packets where the destination port is is between 1 and 1023 inclusive. Display IP addresses and port numbers:

Capture only UDP packets where the destination port is is between 1 and 1023 inclusive. Display IP addresses and port numbers:

Capture any packets with destination IP 192.168.1.1 and destination port 23. Display IP addresses and port numbers:

Capture any packets with destination IP 192.168.5.1 and destination port 80 or 443. Display IP addresses and port numbers:

Capture any ICMP packets:

Capture any ARP packets:

Capture either ICMP or ARP packets:

Capture any packets that are broadcast or multicast:

Capture 500 bytes of data for each packet rather than the default of 68 bytes:

Capture all bytes of data within the packet:

 

Linux Sound Card HDMI problems

1.  How can I change the default audio device from command line?

  • Normally Gui of Ubuntu allows you to do that  (System->Preferences->Sound), like the default input/output device and setting the volume.

      If that not works

2. Use The AlsaMixer 

kutayzorlu.com alsamixer HDMI configuration

F1 – Help
F2 – System Information
F6 – Select Sound Card
Esc – Exit the menu

3. Show the all of the sound devices 

Other Option list cards

4. Change it from GRUB

5. Change the config files and test it by Command Line

Reconfigure again for sound-base

 

Restart PC test again,  It works on my pc.

This test is very important to find which sound card you need to use,   1, and 3   is important  first is  Device  other is  port.

 

 

 

 

 

 

 

Introduction to if

reference: http:// tldp.org / LDP/Bash-Beginners-Guide/html/sect_07_01.html