conraid ha scritto:Mr_pippo91 ha scritto:
bash-3.1# route add -net 192.168.3.11 netmask 255.255.255.0 gw 191.168.3.1 eth0
route: netmask doesn't match route address
Metti l'output dei comandi nei tag CODE
Non puoi dare un gw di una subnet diversa dal tuo IP
se l'IP è 192.168.3.*
e netmask è 255.255.255.0
allora il gw dovrà essere 192.168.3.*
Comunque avrai sbagliato a scrivere, perché 191.etc... non è un indirizzo privato
ok allora nn ci sto più capendo niente..
l' IP del router è 192.168.3.1
l' IP della mia macchina è 192.168.3.11
solo che come do il comando ifconfig eth0 192.168.3.11 mi da SIOCSIFFLAGS: No such file or directory
io non riesco a capire se il mio sia un problema di parametri mal dati o la mia scheda di rete che fa i capricci... per esempio non riesco a dare l'essid nonostante mi abbiano dato 20.000 consigli su come impostarlo... mi da sempre qualche errore quando cerco di impostarlo...
guarda l'epicentro del mio rc.inet1.conf:
# Config information for eth0:
IPADDR[0]="192.168.3.11"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="no"
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]="192.168.3.10"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]="no"
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY="192.168.3.1"
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
#IFNAME[4]="eth0"
#IPADDR[4]="192.168.3.11"
#NETMASK[4]="255.255.255.0"
#USE_DHCP[4]=""
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=Casa - Carrusci
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="12"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=7B1ABEEB5D197741923ED26727569C365E31212096A0EAFAD563B268BAD01CAF TxRate=0"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"