PDA

View Full Version : Nhờ giúp đỡ: HỎI VỀ CÁC IP ADDRESS CỦA INTERFACE?



Leo
21-07-2003, 10:42 AM
Cho tôi hỏi một vấn đề như sau:các interface của một router thì IP add có bắt buộc phải khác subnet hay không?
Tôi đã hỏi nhiều người có người bảo phải khác nhau, có người bảo có thể cùng subnet
Mọi người cho ý kiến với

quoctrang
21-07-2003, 11:14 AM
Hi leo !
các interface của một router bắt buộc phải gán IP add của các network khác nhau hoặc các subnet khác nhau .

Leo
21-07-2003, 03:02 PM
nhưng con 2509 của mình vẫn cho mình nhập 2 IP add cùng một subnet cho 2 interface serial mờ. mình cũng chẳng hiểu nổi, bạn có ý kiến gì không?

Giangvh
21-07-2003, 03:18 PM
Leo,

bạn có thể post config của bạn ở đây được không? Mọi người sẽ chỉ ra problem.

Cám ơn,

themask
21-07-2003, 05:06 PM
Do router là các thiết bị lớp 3 thực hiện chức năng định tuyến giữa các mạng
với nhau nên hiển nhiên mỗi Ehternet Interface của nó sẽ tạo thành một Broadcast Domain, nghĩa là mỗi Ehthernet Interface phải được gán IP nằm trong network khác nhau.
Thông thường khi config IP cùng Net trên các E khác nhau, router sẽ báo ngay lập tức ngay sau cau lệnh Ip add. Trong trường hợp này có thể Leo tính nhầm Subnet nên gán vào vẫn không bị sao. Leo có thắc mét gì thêm thì Post Config lên mọi người giúp cho hén.

Themask

Where there is a will, there are a way!

Leo
24-07-2003, 04:39 PM
Chào mọi người,
trước khi post bài lên tôi hiểu sẽ nhất nhiều người nghi ngờ bởi vì bản thân tôi nếu không gặp trường hợp này tôi cũng chẳng tin
tôi gửi mọi người file là kết quả của các lệnh
- show runn
- show ver
- show ip int brief
- show int s0/s1
Mong được chỉ giáo
p/s: do không att file được nên tôi paste vào luôn, mọi người thông cảm


Router#show running-config
Building configuration...

Current configuration : 492 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
!
!
!
!
ip subnet-zero
!
!
!
interface Ethernet0
ip address 192.168.0.254 255.255.255.0
!
interface Serial0
ip address 192.168.3.1 255.255.255.0
no fair-queue
!
interface Serial1
ip address 192.168.3.2 255.255.255.0
!
ip classless
ip http server
!
!
!
line con 0
exec-timeout 0 0
line 1 8
line aux 0
line vty 0 4
!
end
Router#show ip interface brief
Interface IP-Address OK? Method Status Prot
ocol
Ethernet0 192.168.0.254 YES manual up up

Serial0 192.168.3.1 YES manual up up

Serial1 192.168.3.2 YES manual up up

Router#show ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-P7-L), Version 12.1(17), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Tue 03-Sep-02 23:09 by kellythw
Image text-base: 0x03042984, data-base: 0x00001000

ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTLDR: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWA
RE (fc1)

Router uptime is 6 minutes
System returned to ROM by reload
System image file is "flash:c2500-p7-l.121-17.bin"

cisco 2509 (68030) processor (revision M) with 2048K/2048K bytes of memory.
Processor board ID 15889695, with hardware revision 00000000
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
8 terminal line(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read ONLY)

Configuration register is 0x2102


Router#show int s1
Serial1 is up, line protocol is up
Hardware is HD64570
Internet address is 192.168.3.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:01, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
128 packets input, 11100 bytes, 0 no buffer
Received 126 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
135 packets output, 14465 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up

Router#show int s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 192.168.3.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters 00:18:45
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
125 packets input, 10455 bytes, 0 no buffer
Received 125 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
131 packets output, 11320 bytes, 0 underruns
0 output errors, 0 collisions, 4 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up

Mikami
24-07-2003, 10:52 PM
"interface Ethernet0
ip address 192.168.0.254 255.255.255.0
!
interface Serial0
ip address 192.168.3.1 255.255.255.0
no fair-queue
!
interface Serial1
ip address 192.168.3.2 255.255.255.0 "

Do Interface Ethernet khác Net với Serial ===> OK .

Do cách tính của bạn là dưới dạng Classful, tức là kô chia Subnet ==> 2 interface Serial cùng net là 192.168.3.0 ==> OK

Về lý thuyết thì các Interface sẽ up , và có thể ping được với nhau giữa 2 interface, nhưng về thực tế thì chẳng ai mà dại gì ko chia Subnet cho các Interface Serial kết nối Back to Back với nhau cả.

Khi chia Subnet , thì sẽ dễ dàng cho việc Routing và Security giữa các Net với nhau.

THÂN