You are not logged in.
I need to get a static ip so I can easily get ssh access to my computer, the problem is that I can't seem to be able to connect with the settings I put in. dhcpcd doesn't work, but NetworkManager and dhclient do.
Relavent lspci -vv output
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 26
Region 0: I/O ports at ee00 [size=256]
Region 2: Memory at fdfff000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at fde00000 [disabled] [size=128K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] Vital Product Data
Unknown small resource type 05, will not decode more.
Capabilities: [50] MSI: Enable+ Count=1/2 Maskable- 64bit+
Address: 00000000fee0f00c Data: 4171
Capabilities: [60] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 1024 bytes, PhantFunc 0, Latency L0s <128ns, L1 unlimited
ExtTag+ AttnBtn+ AttnInd+ PwrInd+ RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 4096 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0 unlimited, L1 unlimited
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
Capabilities: [84] Vendor Specific Information <?>
Capabilities: [100] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-
Capabilities: [12c] Virtual Channel <?>
Capabilities: [148] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [154] Power Budgeting <?>
Kernel driver in use: r8169
Kernel modules: r8169
relavent sections from /etc/rc.conf
eth0="eth0 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
/etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1
^ Thats what I normally put in anyway
I wouldn't mind setting up the ip with NetworkManager, I just need the static ip
Thanks for any help.
Last edited by some-guy94 (2009-08-15 18:36:07)
Offline
Um, what do you want? Do you want to access your PC from another PC on the LAN or from the internet? If it is the former:
dhcpcd and dhclient are DHCP clients to recieve your dynamic IP if you want one. You shouldn't use them if you configured your network to use static IPs. If you do want to use dhcpcd, you would have to set up a DHCP server somewhere, i.e. on that gateway (192.168.1.1) and configure it to always assign the same IP to a NIC with a specific MAC address.
If it is the latter you need to resarch if your ISP uses dynamic or static IPs and if it uses dynamic ones you need to get yourself a Dynamic DNS service (i.e. dyndns.org) and run something like ddclient to update the IP your ISP assigns to you every time it changes.
Last edited by Malstrond (2009-08-15 16:25:44)
Offline
Um, what do you want? Do you want to access your PC from another PC on the LAN or from the internet? If it is the former:
dhcpcd and dhclient are DHCP clients to recieve your dynamic IP if you want one. You shouldn't use them if you configured your network to use static IPs. If you do want to use dhcpcd, you would have to set up a DHCP server somewhere, i.e. on that gateway (192.168.1.1) and configure it to always assign the same IP to a NIC with a specific MAC address.
If it is the latter you need to resarch if your ISP uses dynamic or static IPs and if it uses dynamic ones you need to get yourself a Dynamic DNS service (i.e. dyndns.org) and run something like ddclient to update the IP your ISP assigns to you every time it changes.
I want access from another pc on the LAN, before switching to arch linux from suse I had a static ip setup, but I can't seem to get it working now.
EDIT: Wow, I think I just got it a static IP with networkmanager
Last edited by some-guy94 (2009-08-15 18:21:30)
Offline
Well, if you want to do that a simple
ifconfig eth0 up
ifconfig eth0 address 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255
Is fine. No need for dhclient or dhcpcd. They have nothing to do with static IPs.
If you want to do this automatically, the settings in /etc/rc.conf are correct. Just start the network daemon /etc/rc.d/network start and it should be fine.
Offline
Well, if you want to do that a simple
ifconfig eth0 up
ifconfig eth0 address 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255
Is fine. No need for dhclient or dhcpcd. They have nothing to do with static IPs.
If you want to do this automatically, the settings in /etc/rc.conf are correct. Just start the network daemon /etc/rc.d/network start and it should be fine.
I tried that and for some reason it didn't work, I managed to get it working through networkmanager though
Thanks for your help
Offline