You are not logged in.
Pages: 1
I can't use an static ip, but i can use dhcp, and all go well.
I want to use a private_ip: 192.168.1.40
]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:59:--:--:--
inet addr:192.168.1.251 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2d0:59ff:fe7b:13ba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82376 errors:0 dropped:0 overruns:0 frame:0
TX packets:66182 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:110141582 (105.0 Mb) TX bytes:4684879 (4.4 Mb)
Interrupt:11 Base address:0x1c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:164 errors:0 dropped:0 overruns:0 frame:0
TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10321 (10.0 Kb) TX bytes:10321 (10.0 Kb)
And this is my rc.conf when I try to put an static ip:
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="arch"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
# Don't use this for wireless interfaces, see network profiles below
#
eth0="192.168.1.40 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
#
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)
I can't understand where is the trouble. Do you see?
Last edited by halcor (2008-05-24 16:43:25)
Offline
Can you post the output of ifconfig when configured for a static IP?
Offline
Solucionated, I used to restart the network daemons, and not, It's like Windows, I need to restart the system...
Offline
Pages: 1