Telecom20162 pji3 configuracoes: mudanças entre as edições
Sem resumo de edição |
Sem resumo de edição |
||
(13 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
NOVO LINK: http://bit.ly/pji320162-config | |||
Link da matéria: [[PJI11103-2016-2]] ([http://bit.ly/pji320162 alternativo]) | |||
{{Collapse top | Desatualizado}} | |||
Operadora | == Operadora == | ||
> Arquivo de configuração das interfaces de redes | > Arquivo de configuração das interfaces de redes | ||
Linha 54: | Linha 55: | ||
address 192.168.40.10 | address 192.168.40.10 | ||
netmask 255.255.255.0 | netmask 255.255.255.0 | ||
</syntaxhighlight> | |||
> Arquivos de configuração do PPPOE | |||
<code> | |||
pasteltelecom@concentradoracesso:~$ cat /etc/ppp/peers/adsl | |||
cat: /etc/ppp/peers/adsl: Arquivo ou diretório não encontrado | |||
pasteltelecom@concentradoracesso:~$ cat /etc/ppp/pppoe-server-options | |||
require-chap | |||
noauth | |||
login | |||
lcp-echo-interval 10 | |||
lcp-echo-failure 2 | |||
ms-dns 200.135.37.65 | |||
netmask 255.255.255.0 | |||
noipdefault | |||
debug | |||
kdebug 4 | |||
pasteltelecom@concentradoracesso:~$ sudo cat /etc/ppp/chap-secrets | |||
# Secrets for authentication using CHAP | |||
# client server secret IP addresses | |||
usuario1 * senha1 | |||
pasteltelecom@concentradoracesso:~$ cat /etc/ppp/faixa-ip | |||
10.0.0.2-254 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Linha 180: | Linha 207: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
DHCP | |||
<code> | |||
root@concentradoracesso:/home/pasteltelecom# cat /etc/dhcp/dhcpd.conf | |||
default-lease-time 600; | |||
max-lease-time 7200; | |||
subnet 192.168.10.0 netmask 255.255.255.0 { | |||
# | |||
# Faixa de IPs disponíveis: | |||
range 192.168.10.100 192.168.10.199; | |||
# | |||
# Máscara de rede | |||
option subnet-mask 255.255.255.0; | |||
# | |||
#Endereço de 'broadcast' | |||
option broadcast-address 192.168.10.255; | |||
# | |||
#Endereço do roteador | |||
option routers 192.168.10.10; | |||
# | |||
#DNS | |||
option domain-name-servers 200.135.37.65; | |||
} | |||
subnet 192.168.20.0 netmask 255.255.255.0 { | |||
# | |||
# Faixa de IPs disponíveis: | |||
range 192.168.20.100 192.168.20.199; | |||
# | |||
# Máscara de rede | |||
option subnet-mask 255.255.255.0; | |||
# | |||
#Endereço de 'broadcast' | |||
option broadcast-address 192.168.20.255; | |||
# | |||
#Endereço do roteador | |||
option routers 192.168.20.10; | |||
# | |||
#DNS | |||
option domain-name-servers 200.135.37.65; | |||
} | |||
root@concentradoracesso:/home/pasteltelecom# cat /etc/default/isc-dhcp-server | |||
# Defaults for isc-dhcp-server initscript | |||
# sourced by /etc/init.d/isc-dhcp-server | |||
# installed at /etc/default/isc-dhcp-server by the maintainer scripts | |||
-- | # | ||
# This is a POSIX shell fragment | |||
# | |||
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). | |||
#DHCPD_CONF=/etc/dhcp/dhcpd.conf | |||
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid). | |||
#DHCPD_PID=/var/run/dhcpd.pid | |||
# Additional options to start dhcpd with. | |||
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead | |||
#OPTIONS="" | |||
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? | |||
# Separate multiple interfaces with spaces, e.g. "eth0 eth1". | |||
INTERFACES="bond0.10 bond0.20" | |||
</syntaxhighlight> | |||
== GALPÃO == | |||
> Configuração das interfaces de rede | > Configuração das interfaces de rede | ||
Linha 226: | Linha 318: | ||
gateway 192.168.30.254 | gateway 192.168.30.254 | ||
</syntaxhighlight | </syntaxhighlight | ||
> Configurações do DHCP | |||
<code> | |||
root@galpaocrioulo:~# cat /etc/dhcp/dhcpd.conf | |||
default-lease-time 600; | |||
max-lease-time 7200; | |||
subnet 192.168.1.0 netmask 255.255.255.0{ | |||
option subnet-mask 255.255.255.0; | |||
option broadcast-address 192.168.1.255; | |||
option routers 192.168.1.1; | |||
option domain-name-servers 200.135.37.65; | |||
range 192.168.1.101 192.168.1.106; | |||
} | |||
root@galpaocrioulo:~# cat /etc/default/isc-dhcp-server | |||
# Defaults for isc-dhcp-server initscript | |||
# sourced by /etc/init.d/isc-dhcp-server | |||
# installed at /etc/default/isc-dhcp-server by the maintainer scripts | |||
# | |||
# This is a POSIX shell fragment | |||
# | |||
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). | |||
#DHCPD_CONF=/etc/dhcp/dhcpd.conf | |||
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid). | |||
#DHCPD_PID=/var/run/dhcpd.pid | |||
# Additional options to start dhcpd with. | |||
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead | |||
#OPTIONS="" | |||
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? | |||
# Separate multiple interfaces with spaces, e.g. "eth0 eth1". | |||
INTERFACES="bond0" | |||
</syntaxhighlight> | |||
> VLANS no Switch do Galpão | |||
<code> | |||
Switch#show vlan | |||
VLAN Name Status Ports | |||
---- -------------------------------- --------- ------------------------------- | |||
1 default active Gi1/0/1, Gi1/0/2, Gi1/0/3 | |||
Gi1/0/10, Gi1/0/11, Gi1/0/12 | |||
Gi1/0/13, Gi1/0/14, Gi1/0/15 | |||
Gi1/0/16, Gi1/0/17, Gi1/0/18 | |||
Gi1/0/19, Gi1/0/20, Gi1/0/21 | |||
Gi1/0/22, Gi1/0/25, Gi1/0/26 | |||
Gi1/0/27, Gi1/0/28 | |||
10 WI-FI active Gi1/0/8, Gi1/0/9 | |||
20 Visitantes active Gi1/0/6, Gi1/0/7 | |||
30 intra active Gi1/0/4, Gi1/0/5 | |||
</syntaxhighlight> | |||
> Interfaces do Switch do Galpão | |||
<code> | |||
interface GigabitEthernet1/0/1 | |||
! | |||
interface GigabitEthernet1/0/2 | |||
! | |||
interface GigabitEthernet1/0/3 | |||
! | |||
interface GigabitEthernet1/0/4 | |||
switchport access vlan 30 | |||
switchport mode access | |||
! | |||
interface GigabitEthernet1/0/5 | |||
switchport access vlan 30 | |||
switchport mode access | |||
! | |||
interface GigabitEthernet1/0/6 | |||
switchport access vlan 20 | |||
switchport mode access | |||
! | |||
interface GigabitEthernet1/0/7 | |||
switchport access vlan 20 | |||
switchport mode access | |||
! | |||
interface GigabitEthernet1/0/8 | |||
switchport access vlan 10 | |||
switchport mode access | |||
! | |||
interface GigabitEthernet1/0/9 | |||
switchport access vlan 10 | |||
switchport mode access | |||
! | |||
interface GigabitEthernet1/0/10 | |||
! | |||
interface GigabitEthernet1/0/11 | |||
! | |||
interface GigabitEthernet1/0/12 | |||
! | |||
interface GigabitEthernet1/0/13 | |||
! | |||
interface GigabitEthernet1/0/14 | |||
! | |||
interface GigabitEthernet1/0/15 | |||
! | |||
interface GigabitEthernet1/0/16 | |||
! | |||
interface GigabitEthernet1/0/17 | |||
! | |||
interface GigabitEthernet1/0/18 | |||
! | |||
interface GigabitEthernet1/0/19 | |||
! | |||
interface GigabitEthernet1/0/20 | |||
! | |||
interface GigabitEthernet1/0/21 | |||
! | |||
interface GigabitEthernet1/0/22 | |||
! | |||
interface GigabitEthernet1/0/23 | |||
switchport trunk allowed vlan 10,20,30 | |||
switchport mode trunk | |||
channel-protocol lacp | |||
channel-group 1 mode active | |||
! | |||
interface GigabitEthernet1/0/24 | |||
switchport trunk allowed vlan 10,20,30 | |||
switchport mode trunk | |||
channel-protocol lacp | |||
channel-group 1 mode active | |||
! | |||
interface GigabitEthernet1/0/25 | |||
! | |||
interface GigabitEthernet1/0/26 | |||
! | |||
interface GigabitEthernet1/0/27 | |||
! | |||
interface GigabitEthernet1/0/28 | |||
! | |||
</syntaxhighlight> | |||
> Interface PO channel 1 do switch do Galpão | |||
<code> | |||
interface Port-channel1 | |||
switchport trunk allowed vlan 10,20,30 | |||
switchport mode trunk | |||
</syntaxhighlight> | |||
{{Collapse bottom}} |
Edição atual tal como às 12h01min de 22 de setembro de 2016
NOVO LINK: http://bit.ly/pji320162-config
Link da matéria: PJI11103-2016-2 (alternativo)
Desatualizado | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 Operadora> Arquivo de configuração das interfaces de redes /etc/network/interfaces
|
interface Port-channel1 switchport trunk allowed vlan 10,20,30,40 switchport mode trunk end </syntaxhighlight>
|
interface GigabitEthernet1/0/1 switchport access vlan 40 switchport mode access end Switch2#show running-config interface gigabitEthernet 1/0/2 Building configuration... Current configuration : 89 bytes |
interface GigabitEthernet1/0/2 switchport access vlan 30 switchport mode access end Switch2#show running-config interface gigabitEthernet 1/0/23 Building configuration... Current configuration : 134 bytes |
interface GigabitEthernet1/0/23 switchport trunk allowed vlan 10,20,30,40 switchport mode trunk channel-group 1 mode active end Switch2#show running-config interface gigabitEthernet 1/0/24 Building configuration... Current configuration : 134 bytes |
interface GigabitEthernet1/0/24 switchport trunk allowed vlan 10,20,30,40 switchport mode trunk channel-group 1 mode active end </syntaxhighlight> > Interfaces de uso geral do Switch da Operadora As interfaces de 1/0/3 a 1/0/12 estão na VLAN 10 no modo access As interfaces de 1/0/13 a 1/0/22 estão na VLAN 20 no modo access
|
interface GigabitEthernet1/0/13 switchport access vlan 20 switchport mode access </syntaxhighlight> DHCP
|
interface GigabitEthernet1/0/2 |
interface GigabitEthernet1/0/3 |
interface GigabitEthernet1/0/4 switchport access vlan 30 switchport mode access |
interface GigabitEthernet1/0/5 switchport access vlan 30 switchport mode access |
interface GigabitEthernet1/0/6 switchport access vlan 20 switchport mode access |
interface GigabitEthernet1/0/7 switchport access vlan 20 switchport mode access |
interface GigabitEthernet1/0/8 switchport access vlan 10 switchport mode access |
interface GigabitEthernet1/0/9 switchport access vlan 10 switchport mode access |
interface GigabitEthernet1/0/10 |
interface GigabitEthernet1/0/11 |
interface GigabitEthernet1/0/12 |
interface GigabitEthernet1/0/13 |
interface GigabitEthernet1/0/14 |
interface GigabitEthernet1/0/15 |
interface GigabitEthernet1/0/16 |
interface GigabitEthernet1/0/17 |
interface GigabitEthernet1/0/18 |
interface GigabitEthernet1/0/19 |
interface GigabitEthernet1/0/20 |
interface GigabitEthernet1/0/21 |
interface GigabitEthernet1/0/22 |
interface GigabitEthernet1/0/23 switchport trunk allowed vlan 10,20,30 switchport mode trunk channel-protocol lacp channel-group 1 mode active |
interface GigabitEthernet1/0/24 switchport trunk allowed vlan 10,20,30 switchport mode trunk channel-protocol lacp channel-group 1 mode active |
interface GigabitEthernet1/0/25 |
interface GigabitEthernet1/0/26 |
interface GigabitEthernet1/0/27 |
interface GigabitEthernet1/0/28 |
</syntaxhighlight> > Interface PO channel 1 do switch do Galpão
|