Difference between revisions of "Basic commands"
From Tech-Wiki
Line 47: | Line 47: | ||
diag netlink brctl domain <bridge_name> | diag netlink brctl domain <bridge_name> | ||
diag netlink brctl name host <vdom.name>.b | diag netlink brctl name host <vdom.name>.b | ||
+ | |||
+ | Listing a firewall rule | ||
+ | show firewall policy 6 | ||
+ | |||
+ | Disable the ‘more’ at page breaks | ||
+ | config sys console | ||
+ | set output standard | ||
Doing a packet capture (sniffer) | Doing a packet capture (sniffer) | ||
Line 55: | Line 62: | ||
count=10 (packets to dump) | count=10 (packets to dump) | ||
tsformat=l (none specified then relative time, l-localtime) | tsformat=l (none specified then relative time, l-localtime) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 16:18, 11 July 2016
Essentials troubleshooting commands:
exec ping <destination> exec ping-options source <origin> exec ping6 exec traceroute <destination> exec telnet|ssh <destination>
List network interfaces - Equivalent to cisco ‘show ip interfaces brief’
diag ip address list
List the routing table - Equivalent to cisco ‘show ip route’
get router info routing-table all diag ip route list
Connect to a specific VDOM (change context)
config vdom edit root (or edit vdom1)
Sample network configuration with physical ports and vlans:
config system interfaces edit port2 set ip 163.7.131.4 255.255.255.248 set vdom root end edit vlan.15 set interface port5 set vlanid 15 set ip 163.7.131.4 255.255.255.248 set vdom root end
Setting static routes and default gateway
config router static edit 1 set dst 0.0.0.0/0.0.0.0 set gateway 192.168.0.254 set device vlan.15 end
Show arp table
diag ip arp list
Show arp table (in transparent mode)
diag netlink brctl list diag netlink brctl domain <bridge_name> diag netlink brctl name host <vdom.name>.b
Listing a firewall rule
show firewall policy 6
Disable the ‘more’ at page breaks
config sys console set output standard
Doing a packet capture (sniffer)
diag sniffer packet any '!port 22' 4 10 <tsformat> interfaces=[any] (interface name can be specified) filters=[!port 22] (none can be used as well) level=4 (print interface name and header) count=10 (packets to dump) tsformat=l (none specified then relative time, l-localtime)