---
title: "nätverksporblem"
type: "forum-thread"
url: "https://www.webforum.nu/amne/linux-bsd/25755-nätverksporblem"
topic: "Linux & BSD"
topic_url: "https://www.webforum.nu/amne/linux-bsd"
author: "zipp3r"
published: "2001-09-16T18:59:00.000Z"
updated: "2001-09-17T10:01:00.000Z"
replies: 3
views: 154
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/linux-bsd/25755-nätverksporblem"
---

# nätverksporblem

## #1 — zipp3r, 2001-09-16T18:59Z

Var tvungen att installera om linux igen men får nu inte näteverket att funka kortet är installerat och det går bra att pinga det...
här är mina filer... kör corel linux v.1.0

Min /etc/init.d/network fil

\#! /bin/sh
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0
DEVICE=eth0
NETWORKING=yes
FORWARD_IPV4=no
HOSTNAME=efraim
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
IPADDR=192.168.1.1
NETMASK=255.255.255.0
GATEWAY=255.255.255.0
DEVICE=eth0
/sbin/ifconfig ${DEVICE} ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
/sbin/route add -net ${NETWORK}
\[ "${GATEWAY}" \] && /sbin/route add default gw ${GATEWAY} metric 1

och min /etc/samba/smb.conf fil

; /etc/smb.conf
;
; Sample configuration file for the Samba suite for Debian GNU/Linux
;
; Please see the manual page for smb.conf for detailed description of
;	every parameter.
;

\[global\]
  printing=bsd
  printcap name=/etc/printcap
  load printers=yes
  guest account=nobody
  invalid users=root
  security=SHARE
  workgroup=lorken
  server string=efraim
  socket options=IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
  encrypt passwords=yes
  wins support=no
  os level=0
  domain master=no
  local master=no
  preferred master=no
  name resolve order=lmhosts host wins bcast
  dns proxy=no
  preserve case=yes
  short preserve case=yes
  unix password sync=false
  passwd program=/usr/bin/passwd %u
  passwd chat=\*New\\spassword:\* %n\\n \*Re-enter\\snew\\spassword:\* %n\\n \*Password\\schanged.\* .
  max log size=1000
  case sensitive=no

\[homes\]
   comment = Home Directories
   browseable = no

; By default, the home directories are exported read only. Change next
;	parameter to "no" if you want to be able to write to them.
   read only = yes

; File creation mask is set to 0700 for security reasons. If you want to
;	create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

; Directory creation mask is set to 0700 for security reasons. If you want to
;	create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

\[printers\]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

; A sample share for sharing your CD-ROM with others.
;\[cdrom\]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes
;
; The next two parameters show how to auto-mount a CD-ROM when the
;	cdrom share is accesed. For this to work /etc/fstab must contain
;	an entry like this:
;
;       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
;
; The CD-ROM gets unmounted automatically after the connection to the
;
; If you don't want to use auto-mounting/unmounting make sure the CD
;	is mounted on /cdrom
;
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

Permalänk: https://www.webforum.nu/p/25755

## #2 — MattiasC, 2001-09-17T08:49Z

du har samma gateway som netmask, testa och byt gateway.

Permalänk: https://www.webforum.nu/p/383924

## #3 — zipp3r, 2001-09-17T09:19Z

men jag har haft det förut har jag för mej...

men vad är standard gateway i windows då?

Permalänk: https://www.webforum.nu/p/383925

## #4 — MattiasC, 2001-09-17T10:01Z

Testa samma som din ip-adress. Annars vet jag inte.

Permalänk: https://www.webforum.nu/p/383926

---

Tråden på webben: https://www.webforum.nu/amne/linux-bsd/25755-nätverksporblem
