Skip to content

Commit 20afef9

Browse files
committed
add network and route cmd.
1 parent abeb228 commit 20afef9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bashrc/oneline_cmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ ss -tan 'sport = :80' | awk '{print $(NF)" "$(NF-1)}' | sed 's/:[^ ]*//g' | sort
2424

2525
#ifconfig
2626
ifconfig eth0 mtu 1500
27+
ifconfig eth0 down
28+
ifconfig eth0 up
29+
30+
# display network and route
31+
ip route show
32+
ip ro add 10.0.0.0/8 via 10.11.11.254
2733

2834
#config initcwnd and initrwnd
2935
ip route | while read p; do echo "ip route change $p initcwnd 10 initrwnd 10"; done

0 commit comments

Comments
 (0)