hello vriend, ik heb hulp van jullie nodig.
ik heb ubuntu server gisteren geinstalleerd, op en pc met 2 netwerk kaart(eth0 en eth1) eth0 is verbonden met de router via switch, en eth1 wil ook daar een switch zetten om met andere 2 pc's de verbinden. deze 2 pc's moeten ip address van eth1 krijgen( ik wil alleen iets uit proberen over dhcp)
met de eth0 is er geen problem, it werkt perfect alleen kan ik nu niet meer naar buiten pingen, b.v.
www.google.com dan krijg ik de melding unknow hosts. maar in he begin kon ik wel pingen zonder problem, maar naar een paar configuratie, ging alles mis.
hier onder het compleet configuratie van my server (ubuntu server 7.10 i386)
als er ergens fout inzit, kunnen jullie mij vertellen waar, en hoe moet ik deze veranderen? ik ben maar een beginner in Linux.
-------------------------------------------------------------------------------------------------------------------------------------
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 deze eth0 is wel goed
collisions:0 txqueuelen:1000
RX bytes:12460 (12.1 KB) TX bytes:1236 (1.2 KB)
Interrupt:11 Base address:0xe880
eth1 Link encap:Ethernet HWaddr 00:03:FF:4E:62:E5
inet addr:192.168.1.81 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::203:ffff:fe4e:62e5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)
Interrupt:11 Base address:0xec00
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
-------------------------------------------------------------------------------------------
* Starting web server apache2
apache2: Syntax error on line 184 of /etc/apache2/apache2.conf: Syntax error on
line 4 of /etc/apache2/mods-enabled/php5.conf: without matching
odule> section
[fail]
-------------------------------------------------------------------------------------------
/etc/netwo~interfaces [----] 37 L:[ 2+17 19/ 24] *(471 / 600b)= 32 0x20
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.80
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.1.81
netmask 255.255.255.0
network 192.168.0.1
broadcast 192.168.1.255.0
gateway 192.168.1.80
--------------------------------------------------------------------------------------------
bij deze bestand, weet ik niet welk gegevens (mijn server zelf) moet toevoegens
/etc/dhcpd.conf [----] 1 L:[ 25+10 35/ 92] *(1031/3239b)= 32 0x20
# option routers snarg.fugue.com;
#}
subnet 192.5.5.0 netmask 255.255.255.224 {
# range 192.5.5.26 192.5.5.30;
# option name-servers bb.home.vix.com, gw.home.vix.com;
# option domain-name "vix.com";
# option routers 192.5.5.1;
# option subnet-mask 255.255.255.224;
# option broadcast-address 192.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.fugue.com";
--------------------------------------------------------------------------------------------
/etc/default/dhcp [----] 16 L:[ 1+10 11/ 12] *(310 / 312b)= " 34 0x22
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
---------------------------------------------------------------------------------------------------------------------------------- hier weet ik ook niet precies welke ip moet ik aangeven
resolv.conf [----] 1 L:[ 1+ 3 4/ 5] *(83 / 106b)= n 110 0x6E
search domain_not_set.invalid
nameserver 195.130.130.133
nameserver 195.130.131.5
#nameserver 192.168.1.1
------------------------------------------------------------------------------------------------------------------------------------
/etc/hosts [----] 41 L:[ 1+ 1 2/ 11] *(83 / 297b)= s 115 0x73
127.0.0.1 localhost.localdomain localhost
192.168.1.80
www.manuelnoe.nl server24
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
--------------------------------------------------------------------------------------------
/etc/default/bind9 [----] 34 L:[ 1+ 0 1/ 4] *(34 / 93b)= " 34 0x22
OPTIONS="-u bind -t /var/lib/named"
# Set RESOLVCONF=no to not run resolvconf
RESOLVCONF=yes
-------------------------------------------------------------------------------------------
/etc/default/syslogd [----] 34 L:[ 1+12 13/ 14] *(209 / 211b)= " 34 0x22
#
# Top configuration file for syslogd
#
#
# Full documentation of possible arguments are found in the manpage
# syslogd(8).
#
#
# For remote UDP logging use SYSLOGD="-r"
#
SYSLOGD="-a /var/lib/named/dev/log"
--------------------------------------------------------------------------------------------------------------------------------------
ik hoop graag naar een goede reactie van jullie, zoals jullie kunnen zien, ik heb tot zo ver zelf geprobeerd.
alvast bedankt jullie helemaal
junior