-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
105 lines (57 loc) · 2.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# connect to the node/router/gateway via secure shell
# 192.168.42.1 is the default ip after flashing and before configuration
# through the assistant
# frei.funk resolves to the router ip (ipv4+6)
# if you don't know the router ip search for the router ip in the default router
# example: default via **10.230.0.49** dev wlp3s0 src 10.230.0.54 metric 303
ip route show
# learn more about the ip command with
ip help
# once connected you can check the state of the interfaces with
ip link show
# check the ip address assigned to the interfaces with
ip address show
# if you need information about the ipv6 addresses use
ip -6 address show
# check on the routing policies with
ip rule show
# to take a look at one of the routing tables use
ip route show table olsr
# to check the firewall rules use
iptables -L -t mangle
# check syslog with
logread
# use the -f option to follow the logs
logread -f
# check the kernel ring buffer for message
dmesg
# check if olsrd process is running
pgrep olsrd
# check if you have neighbours
neigh.sh
# if you don't have the neigh.sh script because you are using a shitty router
# use:
echo -e "GET /links HTTP/1.0\n\n" | nc localhost 2006
# get basic information about a wifi interface
iw dev wlan0-dhcp-2 info
# get information about the connected stations
iw dev wlan0-dhcp-2 station dump
# get information about the regulatory domain
iw reg get
# scan the wifi for other stations etc.
iw dev wlan0-dhcp-2 scan
# set the txpower to a fixed value
iw dev wlan0 set txpower fixed 1500
# reset router configuration to default configuration
firstboot
# or
mtd -r erase rootfs_data
# configure a vlan
ip link add link eth0 name eth0.100 type vlan id 100
T (tag) - The port belongs to this VLAN, and VLAN tags are included on outgoing
frames.
U (untag) - The port belongs to this VLAN, and VLAN tags are excluded from
outgoing frames.
E (exclude) - The port does not belong to this VLAN.