Network Interfaces Flashcards

1
Q

How to configure network interfaces

A

set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description ‘OUTSIDE’
set interfaces ethernet eth1 address ‘192.168.0.1/24’
set interfaces ethernet eth1 description ‘INSIDE’
set interfaces ethernet eth1 duplex ‘auto’
set interfaces ethernet eth1 speed ‘auto’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to view interface configuration

A

$ show interfaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to view specific interface?

A

$ show interfaces ethernet eth0

vyos@vyos:~$ show interfaces ethernet eth0
eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:44:3b:0f brd ff:ff:ff:ff:ff:ff
inet 172.16.51.129/24 brd 172.16.51.255 scope global eth0
inet6 fe80::20c:29ff:fe44:3b0f/64 scope link
valid_lft forever preferred_lft forever
Description: OUTSIDE
RX: bytes packets errors dropped overrun mcast
274397 3064 0 0 0 0
TX: bytes packets errors dropped carrier collisions
257276 1890 0 0 0 0
vyos@vyos:~$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to disable an existing interface

A

set interfaces ethernet eth1 disable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to view statistics for an existing interface

A

$ show interfaces ethernet eth0 statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to view physical features of an interace?

A

$ show interfaces ethernet physical

ex: vyos@vyos:~$ show interfaces ethernet eth0 physical
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
driver: e1000
version: 7.3.21-k8-NAPI
firmware-version:
bus-info: 0000:02:01.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly