[FUG-BR] Compilar foo.ko no kernel
Boa tarde a todos. Estou tentando instalar o Dahdi (para Asterisk), mas quando dou um make install clean pelo ports o bsd me dá o seguinte erro: FIREWALL# make install clean ===> dahdi-2.4.0rc5_4 requires firmware(9) support for kernel modules with hyphens. *** Error code 1 Stop in /usr/ports/misc/dahdi. Olhei na pagina do manual (man firmware 9) e vi que tem que criar o arquivo foo.ko dentro de /boot/kernel ou /boot/modules, com o seguinte conteúdo: #include #include #include #include struct firmware { const char *name; /* system-wide name */ const void *data; /* location of image */ size_t datasize; /* size of image in bytes */ unsigned intversion;/* version of the image */ }; E quando executo kldload: FIREWALL# kldload /boot/modules/foo.ko kldload: can't load /boot/modules/foo.ko: Exec format error Não sei mais o que fazer, alguém tem alguma idéia de como vou instalar e compilar esta placa do * no meu BSD? Obrigado e espero que alguém possa me dar uma ajuda. -- E-mail: jamaica...@gmail.com Aux Suporte de Sistemas (UNISUL) E-mail: joao.may...@unisul.br MSN: joaomayk...@hotmail.com Cel: (48) 9144 2326 - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Re: [FUG-BR] Compilar foo.ko no kernel
No caso tem que compilar antes de executar. Ai é só o codigo fonte contendo os endereçamentos do modulo. usa o gcc ou outro compilador de C suportado pelo sistema. Att. Em 2/4/2011 15:38, joao jamaicabsd escreveu: > Boa tarde a todos. > Estou tentando instalar o Dahdi (para Asterisk), mas quando dou um make > install clean pelo ports o bsd me dá o seguinte erro: > > FIREWALL# make install clean > ===> dahdi-2.4.0rc5_4 requires firmware(9) support for kernel modules with > hyphens. > *** Error code 1 > > Stop in /usr/ports/misc/dahdi. > > Olhei na pagina do manual (man firmware 9) e vi que tem que criar o arquivo > foo.ko dentro de /boot/kernel ou /boot/modules, com o seguinte conteúdo: > > #include > #include > #include > #include > > struct firmware { > const char *name; /* system-wide name */ > const void *data; /* location of image */ > size_t datasize; /* size of image in bytes */ > unsigned intversion;/* version of the image */ > }; > > E quando executo kldload: > > FIREWALL# kldload /boot/modules/foo.ko > kldload: can't load /boot/modules/foo.ko: Exec format error > > > Não sei mais o que fazer, alguém tem alguma idéia de como vou instalar e > compilar esta placa do * no meu BSD? > > Obrigado e espero que alguém possa me dar uma ajuda. > > > > - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
[FUG-BR] Fwd: Compilar foo.ko no kernel (Resolvido)
Resolvi de outra forma, mesmo assim obrigado. -- Mensagem encaminhada -- De: Paulo Henrique - YM Data: 2 de abril de 2011 15:54 Assunto: Re: [FUG-BR] Compilar foo.ko no kernel Para: freebsd@fug.com.br No caso tem que compilar antes de executar. Ai é só o codigo fonte contendo os endereçamentos do modulo. usa o gcc ou outro compilador de C suportado pelo sistema. Att. Em 2/4/2011 15:38, joao jamaicabsd escreveu: > Boa tarde a todos. > Estou tentando instalar o Dahdi (para Asterisk), mas quando dou um make > install clean pelo ports o bsd me dá o seguinte erro: > > FIREWALL# make install clean > ===> dahdi-2.4.0rc5_4 requires firmware(9) support for kernel modules with > hyphens. > *** Error code 1 > > Stop in /usr/ports/misc/dahdi. > > Olhei na pagina do manual (man firmware 9) e vi que tem que criar o arquivo > foo.ko dentro de /boot/kernel ou /boot/modules, com o seguinte conteúdo: > > #include > #include > #include > #include > > struct firmware { > const char *name; /* system-wide name */ > const void *data; /* location of image */ > size_t datasize; /* size of image in bytes */ > unsigned intversion;/* version of the image */ > }; > > E quando executo kldload: > > FIREWALL# kldload /boot/modules/foo.ko > kldload: can't load /boot/modules/foo.ko: Exec format error > > > Não sei mais o que fazer, alguém tem alguma idéia de como vou instalar e > compilar esta placa do * no meu BSD? > > Obrigado e espero que alguém possa me dar uma ajuda. > > > > - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd -- E-mail: jamaica...@gmail.com Aux Suporte de Sistemas (UNISUL) E-mail: joao.may...@unisul.br MSN: joaomayk...@hotmail.com Cel: (48) 9144 2326 - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Re: [FUG-BR] Fwd: Compilar foo.ko no kernel (Resolvido)
Documenta para que consta no historico da Lista, Abraços... precisando de ajuda a lista está aqui.. Em 2/4/2011 17:20, joao jamaicabsd escreveu: > Resolvi de outra forma, mesmo assim obrigado. > > -- Mensagem encaminhada -- > De: Paulo Henrique - YM > Data: 2 de abril de 2011 15:54 > Assunto: Re: [FUG-BR] Compilar foo.ko no kernel > Para: freebsd@fug.com.br > > > No caso tem que compilar antes de executar. > > Ai é só o codigo fonte contendo os endereçamentos do modulo. > > usa o gcc ou outro compilador de C suportado pelo sistema. > Att. > > Em 2/4/2011 15:38, joao jamaicabsd escreveu: >> Boa tarde a todos. >> Estou tentando instalar o Dahdi (para Asterisk), mas quando dou um make >> install clean pelo ports o bsd me dá o seguinte erro: >> >> FIREWALL# make install clean >> ===>dahdi-2.4.0rc5_4 requires firmware(9) support for kernel modules > with >> hyphens. >> *** Error code 1 >> >> Stop in /usr/ports/misc/dahdi. >> >> Olhei na pagina do manual (man firmware 9) e vi que tem que criar o > arquivo >> foo.ko dentro de /boot/kernel ou /boot/modules, com o seguinte conteúdo: >> >>#include >>#include >>#include >>#include >> >>struct firmware { >>const char *name; /* system-wide name */ >>const void *data; /* location of image */ >>size_t datasize; /* size of image in bytes */ >>unsigned intversion;/* version of the image */ >>}; >> >> E quando executo kldload: >> >> FIREWALL# kldload /boot/modules/foo.ko >> kldload: can't load /boot/modules/foo.ko: Exec format error >> >> >> Não sei mais o que fazer, alguém tem alguma idéia de como vou instalar e >> compilar esta placa do * no meu BSD? >> >> Obrigado e espero que alguém possa me dar uma ajuda. >> >> >> >> > - > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
[FUG-BR] Erro ao reiniciar as interfaces
Boa Noite lista Estou com o seguinte problema ao reiniciar as placas do meu servidor Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei na net mas não encontrei algo sobre este erro, abaixo esta a configuração das interfaces no rc.conf Desde já agradeço Att, Ricardo Stopping network :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address # Interfaces de Rede ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" ifconfig_em0_alias5="inet 200.X.X.143 netmask 255.255.255.255" ifconfig_em0_alias6="inet 200.X.X.144 netmask 255.255.255.255" ifconfig_em0_alias7="inet 200.X.X.145 netmask 255.255.255.255" ifconfig_em1="inet 192.168.9.1 netmask 255.255.255.0" ifconfig_re0="inet 10.28.0.1 netmask 255.255.255.0" ifconfig_re0_alias0="inet 10.28.0.120 netmask 255.255.255.255" ifconfig_re0_alias1="inet 10.28.0.215 netmask 255.255.255.255" ifconfig_re0_alias2="inet 10.28.0.121 netmask 255.255.255.255" ifconfig_re1="inet 10.10.2.1 netmask 255.255.255.0" ifconfig_re2="inet 10.28.11.1 netmask 255.255.255.0" - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Re: [FUG-BR] Erro ao reiniciar as interfaces
2011/4/2 Ricardo : > Boa Noite lista > > Estou com o seguinte problema ao reiniciar as placas do meu servidor > Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei > na net mas não encontrei algo sobre este erro, abaixo esta a > configuração das interfaces no rc.conf Dê um ifconfig e veja se os IPs já estão configurados. Pode ser isto. João Rocha. > > Desde já agradeço > > Att, > > Ricardo > > Stopping network > :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > > > # Interfaces de Rede > ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" > ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" > ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" > ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" > ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" > ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" > ifconfig_em0_alias5="inet 200.X.X.143 netmask 255.255.255.255" > ifconfig_em0_alias6="inet 200.X.X.144 netmask 255.255.255.255" > ifconfig_em0_alias7="inet 200.X.X.145 netmask 255.255.255.255" > ifconfig_em1="inet 192.168.9.1 netmask 255.255.255.0" > ifconfig_re0="inet 10.28.0.1 netmask 255.255.255.0" > ifconfig_re0_alias0="inet 10.28.0.120 netmask 255.255.255.255" > ifconfig_re0_alias1="inet 10.28.0.215 netmask 255.255.255.255" > ifconfig_re0_alias2="inet 10.28.0.121 netmask 255.255.255.255" > ifconfig_re1="inet 10.10.2.1 netmask 255.255.255.0" > ifconfig_re2="inet 10.28.11.1 netmask 255.255.255.0" > - > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > -- "Sempre se apanha mais com as menores besteiras. Experiência própria." http://jgoffredo.blogspot.com goffr...@gmail.com - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Re: [FUG-BR] Erro ao reiniciar as interfaces
Ricardo, encaminha um ifconfig sem paramentros por favor !! Att Paulo Henrique. Em 2/4/2011 18:58, Ricardo escreveu: > Boa Noite lista > > Estou com o seguinte problema ao reiniciar as placas do meu servidor > Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei > na net mas não encontrei algo sobre este erro, abaixo esta a > configuração das interfaces no rc.conf > > Desde já agradeço > > Att, > > Ricardo > > Stopping network > :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address > > > # Interfaces de Rede > ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" > ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" > ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" > ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" > ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" > ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" > ifconfig_em0_alias5="inet 200.X.X.143 netmask 255.255.255.255" > ifconfig_em0_alias6="inet 200.X.X.144 netmask 255.255.255.255" > ifconfig_em0_alias7="inet 200.X.X.145 netmask 255.255.255.255" > ifconfig_em1="inet 192.168.9.1 netmask 255.255.255.0" > ifconfig_re0="inet 10.28.0.1 netmask 255.255.255.0" > ifconfig_re0_alias0="inet 10.28.0.120 netmask 255.255.255.255" > ifconfig_re0_alias1="inet 10.28.0.215 netmask 255.255.255.255" > ifconfig_re0_alias2="inet 10.28.0.121 netmask 255.255.255.255" > ifconfig_re1="inet 10.10.2.1 netmask 255.255.255.0" > ifconfig_re2="inet 10.28.11.1 netmask 255.255.255.0" > - > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Re: [FUG-BR] Erro ao reiniciar as interfaces
Paulo Segue abaixo o ifconfig, o que acebei descobrindo é que se comentar os alias da interface re0 ao reiniciar as interfaces o erro não acontece, mas se colocar novamente o erro volta. re0: flags=8843 metric 0 mtu 1500 options=389b ether xx:xx:xx:xx:xx:xx inet 10.28.0.1 netmask 0xff00 broadcast 10.28.0.255 inet 10.28.0.120 netmask 0x broadcast 10.28.0.120 inet 10.28.0.215 netmask 0x broadcast 10.28.0.215 inet 10.28.0.121 netmask 0x broadcast 10.28.0.121 media: Ethernet autoselect (1000baseTX ) status: active re1: flags=8843 metric 0 mtu 1500 options=389b ether xx:xx:xx:xx:xx:xx inet 10.10.2.1 netmask 0xff00 broadcast 10.10.2.255 media: Ethernet autoselect (1000baseTX ) status: active re2: flags=8843 metric 0 mtu 1500 options=389b ether xx:xx:xx:xx:xx:xx inet 10.28.11.1 netmask 0xff00 broadcast 10.28.11.255 media: Ethernet autoselect (1000baseTX ) status: active em0: flags=8843 metric 0 mtu 1500 options=9b ether 00:30:48:2f:24:ba inet 200.xx.xx.130 netmask 0xffc0 broadcast 200.xx.xx.191 inet 200.xx.xx.132 netmask 0x broadcast 200.xx.xx.132 inet 200.xx.xx.141 netmask 0x broadcast 200.xx.xx.141 inet 200.xx.xx.133 netmask 0x broadcast 200.xx.xx.133 inet 200.xx.xx.136 netmask 0x broadcast 200.xx.xx.136 inet 200.xx.xx.142 netmask 0x broadcast 200.xx.xx.142 inet 200.xx.xx.143 netmask 0x broadcast 200.xx.xx.143 inet 200.xx.xx.144 netmask 0x broadcast 200.xx.xx.144 inet 200.xx.xx.145 netmask 0x broadcast 200.xx.xx.145 media: Ethernet autoselect (1000baseTX ) status: active em1: flags=8843 metric 0 mtu 1500 options=9b ether xx:xx:xx:xx:xx:xx inet 192.168.9.1 netmask 0xff00 broadcast 192.168.9.255 media: Ethernet autoselect (1000baseTX ) status: active Em 2 de abril de 2011 22:28, Paulo Henrique BSD Brasil escreveu: > Ricardo, encaminha um ifconfig sem paramentros por favor !! > Att Paulo Henrique. > Em 2/4/2011 18:58, Ricardo escreveu: >> Boa Noite lista >> >> Estou com o seguinte problema ao reiniciar as placas do meu servidor >> Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei >> na net mas não encontrei algo sobre este erro, abaixo esta a >> configuração das interfaces no rc.conf >> >> Desde já agradeço >> >> Att, >> >> Ricardo >> >> Stopping network >> :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >> >> >> # Interfaces de Rede >> ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" >> ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" >> ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" >> ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" >> ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" >> ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" >> ifconfig_em0_alias5="inet 200.X.X.143 netmask 255.255.255.255" >> ifconfig_em0_alias6="inet 200.X.X.144 netmask 255.255.255.255" >> ifconfig_em0_alias7="inet 200.X.X.145 netmask 255.255.255.255" >> ifconfig_em1="inet 192.168.9.1 netmask 255.255.255.0" >> ifconfig_re0="inet 10.28.0.1 netmask 255.255.255.0" >> ifconfig_re0_alias0="inet 10.28.0.120 netmask 255.255.255.255" >> ifconfig_re0_alias1="inet 10.28.0.215 netmask 255.255.255.255" >> ifconfig_re0_alias2="inet 10.28.0.121 netmask 255.255.255.255" >> ifconfig_re1="inet 10.10.2.1 netmask 255.255.255.0" >> ifconfig_re2="inet 10.28.11.1 netmask 255.255.255.0" >> - >> Histórico: http://www.fug.com.br/historico/html/freebsd/ >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > - > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > - Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Re: [FUG-BR] Erro ao reiniciar as interfaces
2011/4/2 Ricardo : > Paulo > > Segue abaixo o ifconfig, o que acebei descobrindo é que se comentar os > alias da interface re0 ao reiniciar as interfaces o erro não acontece, > mas se colocar novamente o erro volta. Acho que está tentado colocar os endereços que já estão na interface. Como está reiniciando a interface? João Rocha. > > re0: flags=8843 metric 0 mtu 1500 > > options=389b > ether xx:xx:xx:xx:xx:xx > inet 10.28.0.1 netmask 0xff00 broadcast 10.28.0.255 > inet 10.28.0.120 netmask 0x broadcast 10.28.0.120 > inet 10.28.0.215 netmask 0x broadcast 10.28.0.215 > inet 10.28.0.121 netmask 0x broadcast 10.28.0.121 > media: Ethernet autoselect (1000baseTX ) > status: active > re1: flags=8843 metric 0 mtu 1500 > > options=389b > ether xx:xx:xx:xx:xx:xx > inet 10.10.2.1 netmask 0xff00 broadcast 10.10.2.255 > media: Ethernet autoselect (1000baseTX ) > status: active > re2: flags=8843 metric 0 mtu 1500 > > options=389b > ether xx:xx:xx:xx:xx:xx > inet 10.28.11.1 netmask 0xff00 broadcast 10.28.11.255 > media: Ethernet autoselect (1000baseTX ) > status: active > em0: flags=8843 metric 0 mtu 1500 > options=9b > ether 00:30:48:2f:24:ba > inet 200.xx.xx.130 netmask 0xffc0 broadcast 200.xx.xx.191 > inet 200.xx.xx.132 netmask 0x broadcast 200.xx.xx.132 > inet 200.xx.xx.141 netmask 0x broadcast 200.xx.xx.141 > inet 200.xx.xx.133 netmask 0x broadcast 200.xx.xx.133 > inet 200.xx.xx.136 netmask 0x broadcast 200.xx.xx.136 > inet 200.xx.xx.142 netmask 0x broadcast 200.xx.xx.142 > inet 200.xx.xx.143 netmask 0x broadcast 200.xx.xx.143 > inet 200.xx.xx.144 netmask 0x broadcast 200.xx.xx.144 > inet 200.xx.xx.145 netmask 0x broadcast 200.xx.xx.145 > media: Ethernet autoselect (1000baseTX ) > status: active > em1: flags=8843 metric 0 mtu 1500 > options=9b > ether xx:xx:xx:xx:xx:xx > inet 192.168.9.1 netmask 0xff00 broadcast 192.168.9.255 > media: Ethernet autoselect (1000baseTX ) > status: active > > > Em 2 de abril de 2011 22:28, Paulo Henrique BSD Brasil > escreveu: >> Ricardo, encaminha um ifconfig sem paramentros por favor !! >> Att Paulo Henrique. >> Em 2/4/2011 18:58, Ricardo escreveu: >>> Boa Noite lista >>> >>> Estou com o seguinte problema ao reiniciar as placas do meu servidor >>> Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei >>> na net mas não encontrei algo sobre este erro, abaixo esta a >>> configuração das interfaces no rc.conf >>> >>> Desde já agradeço >>> >>> Att, >>> >>> Ricardo >>> >>> Stopping network >>> :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> >>> >>> # Interfaces de Rede >>> ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" >>> ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" >>> ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" >>> ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" >>> ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" >>> ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" >>> ifconfig_em0_alias5="inet 200.X.X.143 netmask 255.255.255.255" >>> ifconfig_em0_alias6="inet 200.X.X.144 netmask 255.255.255.255" >>> ifconfig_em0_alias7="inet 200.X.X.145 netmask 255.255.255.255" >>> ifconfig_em1="inet 192.168.9.1 netmask 255.255.255.0" >>> ifconfig_re0="inet 10.28.0.1 netmask 255.255.255.0" >>> ifconfig_re0_alias0="inet 10.28.0.120 netmask 255.255.255.255" >>> ifconfig_re0_alias1="inet 10.28.0.215 netmask 255.255.255.255" >>> ifconfig_re0_alias2="inet 10.28.0.121 netmask 255.255.255.255" >>> ifconfig_re1="inet 10.10.2.1 netmask 255.255.255.0" >>> ifconfig_re2="inet 10.28.11.1 netmask 255.255.255.0" >>> - >>> Histórico: http://www.fug.com.br/historico/html/freebsd/ >>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd >> >> - >> Histórico: http://www.fug.com.br/historico/html/freebsd/ >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd >> > - > Histórico: http://www.fug.com.
Re: [FUG-BR] Erro ao reiniciar as interfaces
Dica disponivel no rc.conf em /etc/default. No rc.conf descrime os aliases como asseguir. ipv4_addrs_$interface="192.168.1.1/24 10.1.1.1/8 172.16.0.1/16 192.168.2.1/28 \ 192.168.3.1/27 192.168.3.1/25 10.0.1.1/30" Aqui foi apenas um exemplo, Em um ambiente real considerando como interface uma Intel Gigabit Desktop. ipv4_addrs_em0="192.168.1.16/30 192.168.1.21/30 192.168.1.25/29 192.168.1.33/27 \ 192.168.1.65\26 192.168.1.193/27 192.168.1.225/30 192.168.1.229/28 192.168.1.245/30 \ 192.168.1.249/29 192.168.1.1/29 192.168.1.9/30 192.168.1.13/30" Aqui exemplifiquei colocando toda a rede 192.168.1/24 segmentada. como pode ver é simples a configuração, tive um problema no passado, não lembro se é a mesma mensagem, onde resolvi declarando aliases dessas forma. Att. Em 3/4/2011 00:59, Joao Rocha Braga Filho escreveu: > 2011/4/2 Ricardo: >> Paulo >> >> Segue abaixo o ifconfig, o que acebei descobrindo é que se comentar os >> alias da interface re0 ao reiniciar as interfaces o erro não acontece, >> mas se colocar novamente o erro volta. > Acho que está tentado colocar os endereços que já estão na interface. > > Como está reiniciando a interface? > > > João Rocha. > >> re0: flags=8843 metric 0 mtu 1500 >> >> options=389b >> ether xx:xx:xx:xx:xx:xx >> inet 10.28.0.1 netmask 0xff00 broadcast 10.28.0.255 >> inet 10.28.0.120 netmask 0x broadcast 10.28.0.120 >> inet 10.28.0.215 netmask 0x broadcast 10.28.0.215 >> inet 10.28.0.121 netmask 0x broadcast 10.28.0.121 >> media: Ethernet autoselect (1000baseTX) >> status: active >> re1: flags=8843 metric 0 mtu 1500 >> >> options=389b >> ether xx:xx:xx:xx:xx:xx >> inet 10.10.2.1 netmask 0xff00 broadcast 10.10.2.255 >> media: Ethernet autoselect (1000baseTX) >> status: active >> re2: flags=8843 metric 0 mtu 1500 >> >> options=389b >> ether xx:xx:xx:xx:xx:xx >> inet 10.28.11.1 netmask 0xff00 broadcast 10.28.11.255 >> media: Ethernet autoselect (1000baseTX) >> status: active >> em0: flags=8843 metric 0 mtu 1500 >> options=9b >> ether 00:30:48:2f:24:ba >> inet 200.xx.xx.130 netmask 0xffc0 broadcast 200.xx.xx.191 >> inet 200.xx.xx.132 netmask 0x broadcast 200.xx.xx.132 >> inet 200.xx.xx.141 netmask 0x broadcast 200.xx.xx.141 >> inet 200.xx.xx.133 netmask 0x broadcast 200.xx.xx.133 >> inet 200.xx.xx.136 netmask 0x broadcast 200.xx.xx.136 >> inet 200.xx.xx.142 netmask 0x broadcast 200.xx.xx.142 >> inet 200.xx.xx.143 netmask 0x broadcast 200.xx.xx.143 >> inet 200.xx.xx.144 netmask 0x broadcast 200.xx.xx.144 >> inet 200.xx.xx.145 netmask 0x broadcast 200.xx.xx.145 >> media: Ethernet autoselect (1000baseTX) >> status: active >> em1: flags=8843 metric 0 mtu 1500 >> options=9b >> ether xx:xx:xx:xx:xx:xx >> inet 192.168.9.1 netmask 0xff00 broadcast 192.168.9.255 >> media: Ethernet autoselect (1000baseTX) >> status: active >> >> >> Em 2 de abril de 2011 22:28, Paulo Henrique BSD Brasil >> escreveu: >>> Ricardo, encaminha um ifconfig sem paramentros por favor !! >>> Att Paulo Henrique. >>> Em 2/4/2011 18:58, Ricardo escreveu: Boa Noite lista Estou com o seguinte problema ao reiniciar as placas do meu servidor Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei na net mas não encontrei algo sobre este erro, abaixo esta a configuração das interfaces no rc.conf Desde já agradeço Att, Ricardo Stopping network :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address # Interfaces de Rede ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" ifconfig_em0_alias5="inet 200.X.X.143 n
Re: [FUG-BR] Erro ao reiniciar as interfaces
Outra coisa que achei estranho é quanto aos MACs da interfaces re's serem listados como xx:xx:xx:xx:xx:xx e apenas das re's. Att . Em 2/4/2011 23:37, Ricardo escreveu: > Paulo > > Segue abaixo o ifconfig, o que acebei descobrindo é que se comentar os > alias da interface re0 ao reiniciar as interfaces o erro não acontece, > mas se colocar novamente o erro volta. > > re0: flags=8843 metric 0 mtu 1500 > > options=389b > ether xx:xx:xx:xx:xx:xx > inet 10.28.0.1 netmask 0xff00 broadcast 10.28.0.255 > inet 10.28.0.120 netmask 0x broadcast 10.28.0.120 > inet 10.28.0.215 netmask 0x broadcast 10.28.0.215 > inet 10.28.0.121 netmask 0x broadcast 10.28.0.121 > media: Ethernet autoselect (1000baseTX) > status: active > re1: flags=8843 metric 0 mtu 1500 > > options=389b > ether xx:xx:xx:xx:xx:xx > inet 10.10.2.1 netmask 0xff00 broadcast 10.10.2.255 > media: Ethernet autoselect (1000baseTX) > status: active > re2: flags=8843 metric 0 mtu 1500 > > options=389b > ether xx:xx:xx:xx:xx:xx > inet 10.28.11.1 netmask 0xff00 broadcast 10.28.11.255 > media: Ethernet autoselect (1000baseTX) > status: active > em0: flags=8843 metric 0 mtu 1500 > options=9b > ether 00:30:48:2f:24:ba > inet 200.xx.xx.130 netmask 0xffc0 broadcast 200.xx.xx.191 > inet 200.xx.xx.132 netmask 0x broadcast 200.xx.xx.132 > inet 200.xx.xx.141 netmask 0x broadcast 200.xx.xx.141 > inet 200.xx.xx.133 netmask 0x broadcast 200.xx.xx.133 > inet 200.xx.xx.136 netmask 0x broadcast 200.xx.xx.136 > inet 200.xx.xx.142 netmask 0x broadcast 200.xx.xx.142 > inet 200.xx.xx.143 netmask 0x broadcast 200.xx.xx.143 > inet 200.xx.xx.144 netmask 0x broadcast 200.xx.xx.144 > inet 200.xx.xx.145 netmask 0x broadcast 200.xx.xx.145 > media: Ethernet autoselect (1000baseTX) > status: active > em1: flags=8843 metric 0 mtu 1500 > options=9b > ether xx:xx:xx:xx:xx:xx > inet 192.168.9.1 netmask 0xff00 broadcast 192.168.9.255 > media: Ethernet autoselect (1000baseTX) > status: active > > > Em 2 de abril de 2011 22:28, Paulo Henrique BSD Brasil > escreveu: >> Ricardo, encaminha um ifconfig sem paramentros por favor !! >> Att Paulo Henrique. >> Em 2/4/2011 18:58, Ricardo escreveu: >>> Boa Noite lista >>> >>> Estou com o seguinte problema ao reiniciar as placas do meu servidor >>> Freebsd 7.1 (Firewall) apresenta a seguinte mensagem abaixo, procurei >>> na net mas não encontrei algo sobre este erro, abaixo esta a >>> configuração das interfaces no rc.conf >>> >>> Desde já agradeço >>> >>> Att, >>> >>> Ricardo >>> >>> Stopping network >>> :ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address >>> >>> >>> # Interfaces de Rede >>> ifconfig_em0="inet 200.X.X.130 netmask 255.255.255.192" >>> ifconfig_em0_alias0="inet 200.X.X.132 netmask 255.255.255.255" >>> ifconfig_em0_alias1="inet 200.X.X.141 netmask 255.255.255.255" >>> ifconfig_em0_alias2="inet 200.X.X.133 netmask 255.255.255.255" >>> ifconfig_em0_alias3="inet 200.X.X.136 netmask 255.255.255.255" >>> ifconfig_em0_alias4="inet 200.X.X.142 netmask 255.255.255.255" >>> ifconfig_em0_alias5="inet 200.X.X.143 netmask 255.255.255.255" >>> ifconfig_em0_alias6="inet 200.X.X.144 netmask 255.255.255.255" >>> ifconfig_em0_alias7="inet 200.X.X.145 netmask 255.255.255.255" >>> ifconfig_em1="inet 192.168.9.1 netmask 255.255.255.0" >>> ifconfig_re0="inet 10.28.0.1 netmask 255.255.255.0" >>> ifconfig_re0_alias0="inet 10.28.0.120 netmask 255.255.255.255" >>> ifconfig_re0_alias1="inet 10.28.0.215 netmask 255.255.255.255" >>> ifconfig_re0_alias2="inet 10.28.0.121 netmask 255.255.255.255" >>> ifconfig_re1="inet 10.10.2.1 netmask 255.255.255.0" >>> ifconfig_re2="inet 10.28.11.1 netmask 255.255.255.0" >>> - >>> Histórico: http://www.fug.com.br/historico/html/freebsd/ >>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd >> - >> Histórico: http://www.fug.com.br/historico/html/freebsd/ >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd >> > - > Histórico: http://www.fug.com.br/hist