Some collection of LAG configurations and status commands seen over time. LinuxManually ConfigurationStatusFreeBSDConfig ExampleStatusPermanentCheckpoint ConfigStatus - Clish Status - Expert ModeFortigateConfigStatusCisco - CatalystsConfig StatusLinks Linux Manually Configuration modprobe bonding mode=802.3ad ifconfig bond1 192.168.1.1 netmask 255.255.255.0 up ifenslave bond1 eth0 ifenslave bond1 eth1 The Permanent way depends on the distribution. Status cat /proc/net/bonding/bond1 Ethernet Channel Bonding …
resize raw image
freebsd# truncate -s +500G disk0.img https://man.freebsd.org/cgi/man.cgi?query=truncate&sektion=1&manpath=freebsd-release-ports [Expert@cpmg:0]# partedGNU Parted 3.1Using /dev/sdaWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) printError: The backup GPT table is not at the end of the disk, as it should be.This might mean that another operating system believes the disk is smaller.Fix, by moving the backup to …
Routing Tables
FreeBSD freebsd:~ $ netstat -rWRouting tablesInternet:Destination Gateway Flags Nhop# Mtu Netif Expiredefault 11.155.93.1 UGS 6 1500 em011.155.93.0/24 link#1 U 3 1500 em011.155.93.77 link#2 UHS 5 16384 lo0localhost link#2 UH 1 16384 lo0Internet6:Destination Gateway Flags Nhop# Mtu Netif Expire::/96 link#2 URS 6 16384 lo0default fe80::1%em0 UGS 7 1500 em0localhost link#2 UHS 1 16384 lo0::ffff:0.0.0.0/96 link#2 URS …
Source Port selection on Linux results allways in even ports
Some interestion observation over the past weeks, is that i have seen Linux is selecting only even source ports. So lets have a closer look. An exampleDoes this have any effect? How does LACP work?Does this make a difference? Yes certainly it does make a diffrence. What can we do? Where does this come from? …
Continue reading "Source Port selection on Linux results allways in even ports"
SSH Configuration
Some Notes about OpenSSH configuration that comes in handy for me. This is have settings applied on Host or Domain base, use jump servers where needed, find the console for a device or use deprecated encryption when needed. Basic Options Host Hostname Port User Apply Settings per domain Host *. Protocol 2 TCPKeepAlive yes ServerAliveInterval …
Linux – iptables insert rules
Here’s a guide on managing your iptables rules with line numbers, including adding, appending, deleting, and moving rules: [TOC] List rules with Line numbers To view your current iptables rules with line numbers, use the following commands: iptables -t filter -L INPUT --line-numbers -n iptables -t filter -L OUTPUT --line-numbers -n iptables -t filter -L …
Linux CLI Useful Commands
How to convert letters to lower case in BashUPPERCASE using bashlowercase using bash How to convert letters to lower case in Bash echo "THIS IS MY DATA" | tr '[:upper:]' '[:lower:]' UPPERCASE using bash # y="this Is A test" # echo "${y^^}" THIS IS A TEST lowercase using bash # x="THIS IS a TeSt"# echo "${x,,}"this is …
Serial Console unter Debian
LinksEdit: /boot/grub/menu.lstDamit hätten wir dann eine Serielle Console auf der WAVE:-) So dann nur noch ein Backup und dann go baby go. Links http://www.howtoforge.com/setting_up_a_serial_console Edit: /boot/grub/menu.lst --- snip --- # password topsecret serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1 terminal --timeout=10 serial console --- snip --- --- snip --- title Ubuntu 8.10, kernel 2.6.27-7-server uuid b25570ad-6302-4637-a897-d7a4cebf4a7f …
