Configuration réseau

Configurer une interface Ethernet

Les noms des interfaces sont :

  • Ethernet0 : out
  • Ethernet1 : in
  • Ethernet2 : dmz1
  • Ethernet3 : dmz2

Adresse IP statique

  • Configurer l’interface in avec l’adresse IP statique 192.168.1.254/24.

CONFIG NETWORK INTERFACE ADDRESS ADD ifname=ethernet1 address=192.168.1.254 mask=24 addressComment=
CONFIG NETWORK INTERFACE ACTIVATE

Adresse IP dynamique

  • Configurer l’interface out en DHCP.

CONFIG NETWORK INTERFACE ADDRESS ADD ifname=ethernet0 address=DHCP dhcpLeaseTime=0 requestDns=1
CONFIG NETWORK INTERFACE ACTIVATE